custommods

This commit is contained in:
samsonsin
2025-05-29 23:31:29 +02:00
committed by samsonsin
parent 29b5acd552
commit cec1be0c4f
799 changed files with 19536 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
//Jitter offset from Chocapic13
uniform float framemod8;
uniform float velocity;
vec2 jitterOffsets[8] = vec2[8]( // LiteTAA Jitter
vec2( 0.125,-0.375),
vec2(-0.125, 0.375),
vec2( 0.625, 0.125),
vec2( 0.375,-0.625),
vec2(-0.625, 0.625),
vec2(-0.875,-0.125),
vec2( 0.375,-0.875),
vec2( 0.875, 0.875)
);
vec2 TAAJitter(vec2 coord, float w) {
vec2 offset = jitterOffsets[int(framemod8)] * (w / vec2(viewWidth, viewHeight));
offset *= max(1.0 - velocity * 400.0, 0.0) * 0.125;
return coord + offset;
}