Forum Discussion
btrusler
13 years agoHonored Guest
GUI.DrawTexture with OVR
I'm trying to apply a vignette effect of a helmet across the two rift cameras, but it is drawing the texture seemingly on a different layer to the cameras. I've tried attaching the vignette script/tex...
DeadlyJoe
13 years agoRising Star
Any draw calls initiated within OnGUI will not be affected by post-processing effects applied on the rendertarget, because OnGUI is called only after the scene rendering stages have completed. GUI elements will not be affected by post-processing shaders. This is well documented. Here's a good wiki article that lets you explorer the Unity pipeline.
http://wiki.unity3d.com/index.php?title=Event_Execution_Order
If you want your helmet to be affected by the vignette shader, then it must be rendered as part of the scene.
http://wiki.unity3d.com/index.php?title=Event_Execution_Order
If you want your helmet to be affected by the vignette shader, then it must be rendered as part of the scene.
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
- 3 years ago