From d562cdffb2114f3e1d66abc63f63faa261650045 Mon Sep 17 00:00:00 2001 From: Valerie Date: Thu, 11 Apr 2024 17:23:01 -0400 Subject: [PATCH] fixed vertex warp function not working as expected --- shaders/module/vertex_warp.vert | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shaders/module/vertex_warp.vert b/shaders/module/vertex_warp.vert index 5296b0c..f1ff1fe 100644 --- a/shaders/module/vertex_warp.vert +++ b/shaders/module/vertex_warp.vert @@ -7,6 +7,6 @@ vec4 vertex_warp() { vec4 position = gbufferModelViewInverse * gl_ModelViewMatrix * gl_Vertex; vec2 nearest = round(position.xy / position.w * screen) / screen; position.xy = nearest; - return (gl_ProjectionMatrix * gbufferModelView * position); + gl_Position = gl_ProjectionMatrix * gbufferModelView * position; }