Matrix.CreatePerspectiveFieldOfView
can someone explain me how the methode Matrix.CreatePerspectiveFieldOfView(fov, aspect, nearCl开发者_如何学Cip, farClip); is defined in XNA --> i mean the matrix behind it !
thanks you !
Assuming w, and h of:
h = cot(fieldOfViewY/2)
w = h * aspectRatio
This uses the following matrix:
w 0 0 0
0 h 0 0
0 0 farClip/(nearClip-farClip) -1
0 0 nearClip*farClip/(nearClip-farClip) 0
This isn't documented in the XNA docs, but is in the DX documentation.
精彩评论