learn-wgpu icon indicating copy to clipboard operation
learn-wgpu copied to clipboard

Tutorial 13: Error in Gramm-Shmidt

Open SnowyRenard opened this issue 8 months ago • 0 comments

In the final shader.wgsl code for the HDR rendering tutorial Gramm-Schmidt is added but it seems that instead of let world_bitangent = cross(world_tangent,in.world_normal); it should be let world_bitangent = cross(in.world_normal, world_bitangent);. As far as I can see this fixes the issue where the normal map seems to push in instead of out.

SnowyRenard avatar Feb 23 '25 11:02 SnowyRenard