summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders/commonPoint.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/gl/shaders/commonPoint.glsl')
-rw-r--r--gfx/gl/shaders/commonPoint.glsl4
1 files changed, 2 insertions, 2 deletions
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);