I copy this code of shadertoy page and change the code but no run…i think that i make some wrong
void main() {
vec2 q = 0.6 * (2.0*gl_FragCoord-iResolution.xy)/min(iResolution.y,iResolution.x);
float a = atan( q.x, q.y );
float r = length( q );
float s = 0.50001 + 0.5*sin( 3.0*a + iGlobalTime );
float g = sin( 1.57+3.0*a+iGlobalTime );
float d = 0.15 + 0.3*sqrt(s) + 0.15*g*g;
float h = clamp( r/d, 0.0, 1.0 );
float f = 1.0-smoothstep( 0.95, 1.0, h );
h *= 1.0-0.5*(1.0-h)*smoothstep( 0.95+0.05*h, 1.0, sin(3.0*a+iGlobalTime) );
vec3 bcol = vec3(0.9+0.1*q.y, 1.0, 0.9-0.1*q.y);
bcol *= 1.0 - 0.5*r;
vec3 col = mix( bcol, 1.2*vec3(0.65*h, 0.25+0.5*h, 0.0), f );
gl_FragColor = vec4( col, 1.0 );
}
proba glsl.vuo (2.03 KB)