learn-wgpu
learn-wgpu copied to clipboard
Tutorial 13: Error in Gramm-Shmidt
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.