Kinetic Pupils

https://www.shadertoy.com/view/4XX3Rj

Shader code
shader_type canvas_item;

uniform float size : hint_range(0.0, 50.0, 1.0) = 7.;
uniform float speed1 : hint_range(0.0, 20.0, 1.0) = 2.;
uniform float speed2 : hint_range(0.0, 10.0, 1.0) = 1.;
uniform vec3 color = vec3(1.0);

void fragment(){
	vec2 iResolution = 1.0 / SCREEN_PIXEL_SIZE;
    vec2 R = iResolution.xy,
         v = sin( size*(FRAGCOORD.xy+FRAGCOORD.xy-R) / R.y + TIME * speed2 );
         //v = sin( 7.*(FRAGCOORD.xy+FRAGCOORD.xy-R) / R.y + TIME );
    COLOR = vec4( sin( 4.*atan(v.y,v.x) + speed1*TIME - 16.*length(v) )  - .1 );
    COLOR = .5 + COLOR/fwidth(COLOR);
	COLOR.rgb = COLOR.rgb * color;
}
This shader is a port from an existing Shadertoy project. Shadertoy shaders are by default protected under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0) license unless anything else has been stated by the author. For more info, see our License terms.

More from RayL019

Heart Slasher

Saturday weirdness

{Orange Blossom}

Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments