This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef DEBUG_H | |
#define DEBUG_H | |
#ifndef NDEBUG | |
#include <stdio.h> | |
#define dprintf(format, ...) fprintf(stderr, format, ##__VA_ARGS__) | |
#else /* NDEBUG */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); |