forked from AuroraMiddleware/gtk
shadertoy demo: Fix GLSL on GLES
I was getting "assignment to varying fragColor" errors
This commit is contained in:
parent
bacb3affb3
commit
16cdb33c6c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user