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.
如何在 Cg 几何着色器内的世界空间中获取视图方向?
它将在视图矩阵中。根据您的列主要或列次要排序,它将位于 viewXf[3].xyz 或 flaot3(viewXf[0].w,viewXf[1].w,viewXf[2].w) 中。根据需要否定以匹配您的其他数学。