Skip to content

Commit

Permalink
fix: webgpu-lighting-directional.md (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
devloop01 authored May 22, 2024
1 parent 1b8cad2 commit 45c87ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webgpu/lessons/webgpu-lighting-directional.md
Original file line number Diff line number Diff line change
Expand Up @@ -520,8 +520,8 @@ struct VSOutput {
vsOut.position = uni.worldViewProjection * vert.position;

// Orient the normals and pass to the fragment shader
+ vsOut.normal = (uni.world * vec4f(vert.normal, 0)).xyz;
- vsOut.normal = uni.normalMatrix * vert.normal;
- vsOut.normal = (uni.world * vec4f(vert.normal, 0)).xyz;
+ vsOut.normal = uni.normalMatrix * vert.normal;

return vsOut;
}
Expand Down

0 comments on commit 45c87ee

Please sign in to comment.