From 60d1e086242940993432a40a934241dc40b7382c Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sun, 16 Jun 2024 01:21:12 +1000 Subject: uniform blocks working. fix spec highlight bug tomorrow --- assets/shaders/pbr_params.vert | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'assets/shaders/pbr_params.vert') diff --git a/assets/shaders/pbr_params.vert b/assets/shaders/pbr_params.vert index 01379d7..01d0cfe 100644 --- a/assets/shaders/pbr_params.vert +++ b/assets/shaders/pbr_params.vert @@ -19,8 +19,8 @@ layout(location = 2) out vec2 fragTexCoords; void main() { fragWorldPos = vec3(mvp.model * vec4(inPosition, 1.0)); - mat3 normalMatrix = transpose(inverse(mat3(mvp.model))); - fragNormal = normalMatrix * inNormal; + fragNormal = mat3(transpose(inverse(mvp.model))) * inNormal; + fragTexCoords = inTexCoords; gl_Position = mvp.proj * mvp.view * mvp.model * vec4(inPosition, 1.0); -- cgit v1.2.3-70-g09d2