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.
这是功能:
lookat(vec3 eye, vec3 at, vec3 up)
众所周知,上向量可以是(0.0, 1.0, 0.0)。它不能与观察向量平行n,否则会出现问题。
(0.0, 1.0, 0.0)
n
我的问题是如何计算上向量,使其通过该点eye并垂直于n向量。
eye