Hi Dirk,
Textures are just added as StateChunks to the Material, and their shader
parameter is just the texture unit they're bound to (2. parameter given to
addChunk()).
But that would be the case to add a texture to the object, right? The
texture that I'm trying to add is an environment texture, added as a cube
map environment. It's the texture used as a skybox, so that the shader can
calculate the reflection from the environment in the object.
So do I add the texture in addChunk() anyway?
Actually I'm new to shaders, so there are some things that I'm figuring it
out now. Thanks for your help!
Theo
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users