Here is what I am trying to do: load one split screen video (for example https://www.youtube.com/watch?v=5eEXKzbeH7c ) and then use either side of the video as a texture for two different GL shapes.
Hoping the community can point me in the right direction to answer this question:
- How do you translate the position and crop the dimensions of textures on gl shapes?
Brainstorming about it, the first idea which comes to mind is to do the work myself on a canvas and then use my canvas as a texture. However, this might have performance penalties when using video.
Here is a template for where I would like the video to be split:
https://codepen.io/jedierikb/pen/dEVKWL?editors=1010
Thanks,
Erik