Forums > Jitter

simple way to create a texture map into cube ?


Ad.
June 16, 2013 | 11:47 pm

Hello,
I would like to apply 6 jpegs to 6 faces of my cube, how could I do that ?
thanks


June 17, 2013 | 11:57 am

you could possibly use jit.gl.cubemap, with jit.gl.skybox @infinite 0, @cull_face 2, but this has some limitations, such as fixing the position of the skybox at the world origin.

otherwise, simply create 6 of gl.gridshape @shape plane, and give each a texture, position, and orientation to form a cube.


Viewing 2 posts - 1 through 2 (of 2 total)