Added some more example shaders
This commit is contained in:
10
shaders/gradient.frag
Normal file
10
shaders/gradient.frag
Normal file
@@ -0,0 +1,10 @@
|
||||
// https://www.shadertoy.com/new
|
||||
|
||||
void mainImage( out vec4 fragColor, in vec2 fragCoord )
|
||||
{
|
||||
vec2 uv = fragCoord/iResolution.xy;
|
||||
|
||||
vec3 col = 0.5 + 0.5*cos(iTime+uv.xyx+vec3(0,2,4));
|
||||
|
||||
fragColor = vec4(col,1.0);
|
||||
}
|
||||
Reference in New Issue
Block a user