This is the source code for another shader for Shader Editor.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | #ifdef GL_FRAGMENT_PRECISION_HIGH precision highp float; #else precision mediump float; #endif uniform vec2 resolution; uniform float time; uniform vec4 mouse; uniform vec4 date; #define f length(fract(q*=m*=.6+.01*d++)-.5) void mainImage( out vec4 fragColor, in vec2 fragCoord ) { float d = 0.91; vec3 q = vec3(fragCoord.xy/resolution.yy-13., time*.2); mat3 m = mat3(-2,-3,6, 3,-1,1, 0,3,1); vec3 col = vec3(pow(min(min(f,f),f), 7.)*40.); fragColor = vec4(clamp(col + vec3(0., 0.35, 0.5), 0.0, 1.0), 1.0); } void main() { vec4 fragment_color; mainImage(fragment_color, gl_FragCoord.xy); gl_FragColor = fragment_color; } |