Draw a rotating cube: Difference between revisions
m
J: revert to prettier syntax
(J: apparently some implementations of glsl disallow empty statements (which were specified as legal in the language spec I read)) |
m (J: revert to prettier syntax) |
||
Line 1,285:
}}
FSRC=:
#version $version
$f_in $lowp vec4 v_color;
Line 1,292:
$gl_fragColor= v_color;
}
}}
fixversion=:
NB. cope with host shader language version
r=. '$version';GLSL,&":;(GLSL>:300)#(*GLES_VERSION){' core';' es'
Line 1,306:
r=.r, '$gl_fragColor';f2{'gl_fragColor';'fragColor'
r=.r, '$fragColor';f2#'out vec4 fragColor;'
}}
rot_timer=: {{
|