I pass vertices (irr::video::S3DVertex ) to the shader engine. According to the docs, there is a way to specify a 2d texture coordinate (or possibly 2 coordinates) associated with the vertex and access these coordinates in the shader.
I would like to use texture3d() shader functionality.
Starting with generating a 3-dimensional texture and ending with passing vector3df texture coordinates to the shader engine, what is the method in irrlicht to do that?
Help much appreciated!
Pass texture3d to shader
3d texture to shader
Ok. I think I can use the two texture coordinates and save xy in the first and z in the second in the vertex information and it gets correctly passed to the shader.
I was not able to find a way to pass a 3d texture (not a 2d texture) to the shader in irrlicht. Please help.
Thank you!
I was not able to find a way to pass a 3d texture (not a 2d texture) to the shader in irrlicht. Please help.
Thank you!