on the side
This commit is contained in:
parent
5579a8c25a
commit
35bfa62916
1 changed files with 9 additions and 1 deletions
|
|
@ -1,3 +1,5 @@
|
|||
#define PI 3.1415926538
|
||||
|
||||
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
|
||||
vec2 uv = fragCoord / iResolution;
|
||||
|
||||
|
|
@ -9,7 +11,13 @@ void mainImage(out vec4 fragColor, in vec2 fragCoord) {
|
|||
float distance = distance(uv, vec2(0.5, 0.5));
|
||||
float inverse_distance = 1.0 - distance;
|
||||
lines_uv += (lines_uv - vec2(0.5, 0.5)) * inverse_distance * 3.0;
|
||||
|
||||
float rot = PI * 0.2;
|
||||
mat2x2 rotm = mat2x2(
|
||||
cos(rot), -sin(rot),
|
||||
sin(rot), cos(rot)
|
||||
);
|
||||
lines_uv *= rotm;
|
||||
//mat2x2 x = mat2x2(1.0, 1.0, 1.0, 1.0);
|
||||
// The lines themselves
|
||||
float lines_timescale = iTime * 0.6;
|
||||
lines_uv.x += sin(lines_timescale + lines_uv.y * 30.0) * 0.2;// * sin(lines_timescale);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue