spacesvr
spacesvr copied to clipboard
Pause videos when outside of frustrum
more specifically, we should not update the video texture every frame instead of pausing it since we might still want the audio.
the frustrum check can be done by calculating each vertex of the video plane and doing some fun math https://stackoverflow.com/questions/41163030/determine-if-point-is-in-frustum
the stopping of the texture updates seems more sketch, we miiight need to hijack the video texture's update method