Clamp framebuffer textures to edges

This commit is contained in:
2025-11-14 12:41:44 +00:00
parent 9fc36ec54c
commit a24ee66f51
6 changed files with 27 additions and 18 deletions
+5 -3
View File
@@ -11,8 +11,10 @@ float f ( float x) {
void main()
{
float t = f(length(texDist));
fColor = vec4(texture(screenTexture
float r = texture(screenTexture , (t*texPos - vcpos)).r ;
vec2 gb = texture(screenTexture
, 0.5+0.5 *( vcpos + t * (texPos - vcpos))
)
);
).gb
;
fColor = vec4(r,gb,1);
}