From 2758d0de5546eea9b746b3a196c72df721617295 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Sun, 25 Apr 2021 18:27:05 -0400 Subject: [PATCH] make the waves less wavy --- assets/shaders/pixel.fs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/shaders/pixel.fs b/assets/shaders/pixel.fs index de265bd..7e576a9 100644 --- a/assets/shaders/pixel.fs +++ b/assets/shaders/pixel.fs @@ -32,9 +32,9 @@ void main() // Use a wave function to translate the pixel UV float X = baseUV.x*0.5+time; - float Y = baseUV.y*0.5+time; - baseUV.y += cos(X+Y)*0.01*cos(Y); - baseUV.x += sin(X-Y)*0.01*sin(Y); + float Y = baseUV.y*0.25+time; + baseUV.y += cos(X+Y)*0.0025*cos(Y); + baseUV.x += sin(X-Y)*0.012*sin(Y); // Calculate a UV for this new blocky pixel vec2 pixelatedUV = vec2(dx * floor(baseUV.x / dx), dy * floor(baseUV.y / dy));