Transfer the render to the render thread, and change the camera via the shader API when sending it to the command list.
MainThread
- RenderView change camera origin angles
RenderThread
Hooking functions in shaderapidx9.dll
- MatrixMode(MATERIAL_VIEW)
- LoadMatrix(change camera correct only angles)
D3D9 functions
Present()
{
Submit
WaitGetPoses
}
mat_queue_mode 2 will work correctly
I did this in my mod for hl2dm VR.
Transfer the render to the render thread, and change the camera via the shader API when sending it to the command list.
MainThread
RenderThread
Hooking functions in shaderapidx9.dll
D3D9 functions
Present()
{
Submit
WaitGetPoses
}
mat_queue_mode 2 will work correctly
I did this in my mod for hl2dm VR.