summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authortylermurphy534 <tylermurphy534@gmail.com>2022-10-03 06:50:49 -0400
committertylermurphy534 <tylermurphy534@gmail.com>2022-10-03 06:50:49 -0400
commit1701aa5a616f3de55b0a426f8d9e679f2c98a0c6 (patch)
tree87a6c13fb8b7884046f9fdf8c0b7dcaaf6952f28 /res
parentmove chunk loading into world class (diff)
downloadminecraftvulkan-main.tar.gz
minecraftvulkan-main.tar.bz2
minecraftvulkan-main.zip
mouse pickingHEADmain
Diffstat (limited to 'res')
-rwxr-xr-xres/shaders/simple_shader.vert2
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);