spacesvr icon indicating copy to clipboard operation
spacesvr copied to clipboard

Pause videos when outside of frustrum

Open alex-shortt opened this issue 3 years ago • 0 comments

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

alex-shortt avatar Jun 18 '21 23:06 alex-shortt