Download

Video texture on a cubemap

How would one approach updating the cubemap texture while game is running? I’d like to play 360 videos in a cubemap and then use that for lighting effects. I have written a piece of software using openGL that does that, it calls “glTexSubImage2D()” every frame, for each of the cube faces and updates it with textures from a video player. It’s computationally expensive, but works well for my purposes. I couldn’t find anything that would update cubemap texture in the api, so, would an engine mod be required to achieve this? How should i approach this?

Thank you.