diff options
Diffstat (limited to 'res')
-rwxr-xr-x | res/shaders/simple_shader.vert | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/shaders/simple_shader.vert b/res/shaders/simple_shader.vert index 33504ff..9c4c7c6 100755 --- a/res/shaders/simple_shader.vert +++ b/res/shaders/simple_shader.vert @@ -22,8 +22,8 @@ layout (push_constant) uniform Push { const float AMBIENT = 0.02; void main() { - gl_Position = ubo.projectionViewMatrix * push.modelMatrix * vec4(position, 1.0); + gl_Position = ubo.projectionViewMatrix * push.modelMatrix * vec4(position, 1.0); vec3 normalWorldSpace = normalize(mat3(push.normalMatrix) * normal); float lightIntensity = AMBIENT + max(dot(normalWorldSpace, ubo.directionToLight), 0); |