Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在检查着色器示例时,我最近发现将世界逆转置矩阵与世界和世界视图投影 矩阵一起传递是很常见的。
float4x4 worldMatrix; float4x4 worldViewProjectionMatrix; float4x4 worldInverseTransposeMatrix;
不幸的是,我无法理解这样做的目的以及可以在哪里使用它。有人可以解释一下吗?
谢谢你。
世界逆转置矩阵通常用于将法线转换为视图空间。