Fixed some stuff

This commit is contained in:
2025-11-19 09:49:31 +01:00
parent 43e0f47c90
commit bb904b4f02
2 changed files with 3 additions and 2 deletions
@@ -6,11 +6,12 @@ uniform mat4 ProjMat;
uniform vec2 OutSize;
uniform float ShakeStrength;
uniform float Time;
out vec2 oneTexel;
out vec2 texCoord;
void main() {
oneTexel = 1.0 / OutSize;
// screen-shake offset in *pixels*
float px = sin(Time * 25.0 + Position.x * 5.0) * ShakeStrength * 20.0;
float py = cos(Time * 20.0 + Position.y * 7.0) * ShakeStrength * 20.0;