From 8566e63b26f9e7ee809c03394743a0576c499378 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 13 Jan 2024 19:45:54 +0000 Subject: We only need 3x3 matrix for model rotation spec --- gfx/gl/shaders/commonPoint.glsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gfx/gl/shaders/commonPoint.glsl') diff --git a/gfx/gl/shaders/commonPoint.glsl b/gfx/gl/shaders/commonPoint.glsl index a9817fb..2d9e388 100644 --- a/gfx/gl/shaders/commonPoint.glsl +++ b/gfx/gl/shaders/commonPoint.glsl @@ -16,9 +16,9 @@ getMaterialDetail(uint midx) void main() { - FragPos = (model * vec4(position, 1.0)).xyz + modelPos; + FragPos = (model * position) + modelPos; TexCoords = texCoord; - Normal = (model * vec4(normal, 0.0)).xyz; + Normal = (model * normal); Colour = colour; Material = getMaterialDetail(material); -- cgit v1.2.3