jit.gl.texture precedence
i've attached an example here where there are two jit.gl.textures competing for the same space. i would like to be able to manipulate their size and distance, ideally with a "position" attribute - but the jit.gl.texture help file involves resizing the matrix and then sending to a jit.gl.videoplane.
are there any easier ways of doing this?
thanks!
You need to think about textures as some paint available in your world. But in order to actually see the paint, you need to create a painting, ie. put the paint on a surface (videoplane, mesh, gridhshape, etc.) that is part of your world.
When you connect a jit.gl.texture to a jit.world, the jit.world will actually create the painting for you by using an internal jit.gl.videoplane. But you want to take control over that videoplane, so easiest is to make one yourself. And because you want to play with two paintings, you'll need two videoplanes.
This is usually considered the easiest approach.
Another approach is to build your own paint mixer to handle scale, position and blending by yourself and then apply the result on a single surface. Here is a rough example of this: