diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-06-16 01:21:12 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-06-16 01:21:12 +1000 |
commit | 60d1e086242940993432a40a934241dc40b7382c (patch) | |
tree | 1f7a16dd4ad527d3c9f201f616d3f1490445009b /assets/shaders/pbr_params.vert | |
parent | d52654dfdbe16345023fed4c61261dc4c66b96fe (diff) |
uniform blocks working. fix spec highlight bug tomorrow
Diffstat (limited to 'assets/shaders/pbr_params.vert')
-rw-r--r-- | assets/shaders/pbr_params.vert | 4 |
1 files changed, 2 insertions, 2 deletions
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); |