shadertoy demo: Fix GLSL on GLES

I was getting "assignment to varying fragColor" errors
This commit is contained in:
Alexander Larsson 2020-09-23 17:38:03 +02:00
parent bacb3affb3
commit 16cdb33c6c

View File

@ -56,13 +56,15 @@ const char *fragment_prefix =
"uniform float iSampleRate; // sound sample rate (i.e., 44100)\n"
"\n"
"in vec2 fragCoord;\n"
"out vec4 fragColor;\n";
"out vec4 vFragColor;\n";
// Fragment shader suffix
const char *fragment_suffix =
" void main() {\n"
" mainImage(fragColor, fragCoord);\n"
" vec4 c;\n"
" mainImage(c, fragCoord);\n"
" vFragColor = c;\n"
" }\n";
typedef struct {