-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
I can't run any shader from glslsandbox.com.
Here is one example:
#ifdef GL_ES
precision mediump float;
#endif
#extension GL_OES_standard_derivatives : enable
uniform float time;
uniform vec2 mouse;
uniform vec2 resolution;
void main( void ) {
vec2 pos = ( gl_FragCoord.xy / resolution.xy );
float color_r = 0.0;
float color_g = 0.0;
float color_b = 0.0;
float dist = (pos[1] - 0.4*sin((pos[0]+time/1.5)*2.0) - 0.5);
dist = abs(dist);
color_r = pow(1.0 - dist, 5.0);
float dist1 = (pos[1] - 0.5*sin((pos[0]+time/1.0)*2.0) - 0.5);
dist1 = abs(dist1);
color_g = pow(1.0 - dist1, 5.0);
float dist2 = (pos[1] - 0.4*sin((pos[0]+time/0.5)*2.0) - 0.5);
dist2 = abs(dist2);
color_b = pow(1.0 - dist2, 5.0);
gl_FragColor = vec4( vec3( color_r, color_g, color_b ), 1.0 );
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels