Forum Discussion
JoaquinGM
11 years agoHonored Guest
Stencil Optimization in Unity
Can I get the mask of unneeded pixel for the DK2 distorsion? I want to make the stencil mesh optimization sugested by Valve in the "Advanced VR Rendering" conference. http://www.roadtovr.com/valve...
cybereality
11 years agoGrand Champion
I'm not sure if this will be included in the SDK integration. However you can probably hack it up youself.
Basically just draw a doughnut mesh around the viewable area in the scene. You should draw it first using DrawMeshNow ( http://docs.unity3d.com/ScriptReference ... shNow.html ). The polygons that are behind will fail the depth test (or the stencil test), which should be what you need.
Hope that helps.
Basically just draw a doughnut mesh around the viewable area in the scene. You should draw it first using DrawMeshNow ( http://docs.unity3d.com/ScriptReference ... shNow.html ). The polygons that are behind will fail the depth test (or the stencil test), which should be what you need.
Hope that helps.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 18 days ago
- 10 months ago
- 8 months ago