From 68f3c34fc409a902aaf51a46a2c422ddf21a2eca Mon Sep 17 00:00:00 2001 From: Isse Date: Mon, 15 Apr 2024 14:29:41 +0200 Subject: [PATCH] fix sprite offset --- assets/voxygen/shaders/sprite-vert.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/voxygen/shaders/sprite-vert.glsl b/assets/voxygen/shaders/sprite-vert.glsl index 9147772289..abd42017d0 100644 --- a/assets/voxygen/shaders/sprite-vert.glsl +++ b/assets/voxygen/shaders/sprite-vert.glsl @@ -163,7 +163,7 @@ void main() { * SCALE_FACTOR; if (model_wind_sway > 0.0) { - vec2 center = sprite_pos.xy + 0.5; + vec2 center = sprite_pos.xy; vec4 min_entity = nearest_entity(vec3(center, sprite_pos.z), 0.0); const float PUSH_FACTOR = 5;