From 1701aa5a616f3de55b0a426f8d9e679f2c98a0c6 Mon Sep 17 00:00:00 2001 From: tylermurphy534 Date: Mon, 3 Oct 2022 06:50:49 -0400 Subject: mouse picking --- res/shaders/simple_shader.vert | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'res') 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); -- cgit v1.2.3-freya