oculus-samples / Unity-DepthAPI

Examples of using Depth API for real-time, dynamic occlusions
Other
192 stars 24 forks source link

Error: DepthAPI: no environment texture #12

Closed Sandstedt closed 10 months ago

Sandstedt commented 10 months ago

I'm getting this error DepthAPI: no environment texture from EnvironmentDepthTextureProvider.cs:108, when running my game. Seems to work sometimes. Sometimes not. The result is that the custom shader is invisible/only showing the pass-through camera-texture.

Any ideas what could cause this error?

Sandstedt commented 10 months ago

Ok found the issue directly after submitting 😅. As this is still experimental, and I had restarted my headset, I needed to set the experimental flags again as it unfortunately resets after a restart.

adb shell setprop debug.oculus.experimentalEnabled 1