diff options
Diffstat (limited to 'gfx/gl/shaders/commonPoint.glsl')
-rw-r--r-- | gfx/gl/shaders/commonPoint.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx/gl/shaders/commonPoint.glsl b/gfx/gl/shaders/commonPoint.glsl index 35510e1..046da27 100644 --- a/gfx/gl/shaders/commonPoint.glsl +++ b/gfx/gl/shaders/commonPoint.glsl @@ -24,5 +24,5 @@ main() Colour = colour; Material = getMaterialDetail(material); - gl_Position = viewProjection * worldPos; + gl_Position = viewProjection * vec4(FragPos - viewPoint + modelPos, 1); } |