摘要:
please refer to http://www.mvps.org/directx/articles/linear_z/linearz.htmWhen using a programmable vertex shader, we have direct control of the transformation process, and can implement our own. Vertex position can be read from the input registers, manipulated however we like, then output as a 4D ho 阅读全文
摘要:
shader里面经常看到normal向量是用WorldInverseTranspose矩阵做变换的,有时候也可以用WorldMatrix变换。原理:If your object is only ever rotated and translated, you can transform normal... 阅读全文