You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good guy, I have some doubts when studying the code, why do we need to do perspective division on the ray from the model space camera to the vertex? In my cognition, perspective division is only to get the NDC coordinates, and there are some unclear meanings here.
after i.viewRayOS.xyz /= i.viewRayOS.w;
i.viewRayOS.xyz is now an object space view direction with view space depth = 1 (not a unit vector).
cameraPosOS.xyz + i.viewRayOS.xyz * linearEyeDepth = reconstruct scene position in object space from depth texture
Good guy, I have some doubts when studying the code, why do we need to do perspective division on the ray from the model space camera to the vertex? In my cognition, perspective division is only to get the NDC coordinates, and there are some unclear meanings here.
大佬好,在研究代码的时候有一些疑惑,为什么要对模型空间相机到顶点的射线做透视除法,在我的认知里透视除法只是为了得到NDC坐标,而这里让我有些摸不到头脑
i.viewRayOS.xyz = i.viewRayOS.xyz / i.viewRayOS.w;
The text was updated successfully, but these errors were encountered: