From d2c6e8729e19d91cfd3ab48e136925bc527b15c5 Mon Sep 17 00:00:00 2001 From: Sikriti Dakua <38714423+devloop01@users.noreply.github.com> Date: Fri, 24 May 2024 21:06:17 +0530 Subject: [PATCH] fix: webgpu-lighting-directional.md (#118) --- webgpu/lessons/webgpu-lighting-directional.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webgpu/lessons/webgpu-lighting-directional.md b/webgpu/lessons/webgpu-lighting-directional.md index 172cd73e..e143e31e 100644 --- a/webgpu/lessons/webgpu-lighting-directional.md +++ b/webgpu/lessons/webgpu-lighting-directional.md @@ -622,7 +622,7 @@ Now that we have these 2 functions we can compute and set the normal matrix. + mat4.multiply(viewProjectionMatrix, world, worldViewProjectionValue); + + // Inverse and transpose it into the normalMatrix value -+ mat3.fromMat4(mat4.transpose(mat4.inverse(world), worldInverseTransposeValue)); ++ mat3.fromMat4(mat4.transpose(mat4.inverse(world)), normalMatrixValue); ``` Because the effect is subtle and because we aren't scaling anything