From 45c87ee9d6c3bbfc7e9bd7e1876d36d9ad461773 Mon Sep 17 00:00:00 2001 From: Sikriti Dakua <38714423+devloop01@users.noreply.github.com> Date: Thu, 23 May 2024 04:33:23 +0530 Subject: [PATCH] fix: webgpu-lighting-directional.md (#117) --- webgpu/lessons/webgpu-lighting-directional.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webgpu/lessons/webgpu-lighting-directional.md b/webgpu/lessons/webgpu-lighting-directional.md index 5c2c88a9..172cd73e 100644 --- a/webgpu/lessons/webgpu-lighting-directional.md +++ b/webgpu/lessons/webgpu-lighting-directional.md @@ -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; }