diff options
Diffstat (limited to 'gfx')
-rw-r--r-- | gfx/gl/shaders/water.vs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx/gl/shaders/water.vs b/gfx/gl/shaders/water.vs index 34c4700..58bf7b6 100644 --- a/gfx/gl/shaders/water.vs +++ b/gfx/gl/shaders/water.vs @@ -15,7 +15,7 @@ main() cos(waves + (position.x / 1000000) + (position.y / 8000)) * 300.0); FragPos = vec3(wpos.xy, position.z); - TexCoords = position.xy / 8192; + TexCoords = (position.xy / 8192) - (viewPoint.xy / 8192); gl_Position = viewProjection * vec4(wpos - viewPoint, 1.0); } |