Original Post
When using the hardware occulusion querry, do I have to set up the effect and the neccessary constant, like View Matrix, Light Position etc.
...
Device->SetRenderTarget(OcculusionSurface);
Device->BeginScene();
- Do Occulusion Query 1.
setup effect and constant
Query->Issue(D3DISSUE_BEGIN);
Draw BoundingMesh
Query->Issue(D3DISSUE_END);
Do Occulusion Query 2.
Do Occulusion Query 3.
Device->EndScene();
Is this the correct steps? Can I not use any effect at all?