Browse Source

fix lighting bug in default shader

render_group_fix
cinnaboot 5 years ago
parent
commit
1933186d6c
  1. 2
      src/default_shaders.cpp

2
src/default_shaders.cpp

@ -17,7 +17,7 @@ uniform mat4 projection;
void main()
{
fragNormal = normal;
fragNormal = vec4(world_transform * vec4(normal, 1)).xyz;
fragVertex = vertexPosition_modelspace;
fragUV = texCoord.st;
gl_Position = projection * view *

Loading…
Cancel
Save