Skip to content

Instantly share code, notes, and snippets.

#version 330 core
layout(location = 0) out vec4 fcolor;
void main(void) {
const vec4 color1 = vec4(0.0, 0.6, 0.0, 1.0);
const vec4 color2 = vec4(0.9, 0.7, 1.0, 0.0);
if (gl_PointCoord == vec2(1.0)) {
fcolor = vec4(1.0f, 0.0f, 0.0f, 1.0f);
@Sachs27
Sachs27 / debug.h
Created September 4, 2013 03:05
Used for debugging output.
#ifndef DEBUG_H
#define DEBUG_H
#ifndef NDEBUG
#include <stdio.h>
#define dprintf(format, ...) fprintf(stderr, format, ##__VA_ARGS__)
#else /* NDEBUG */