Hi Theo,
Theo Satoshi Tanaka wrote:
>
> 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?
Yup. Whatever texture you want to use in the shader needs to be part of the
material, or it not be active when the object is rendered. Given that your
shader defines which textures are sampled, it's up to you to decide if and how
to use it.
Dirk
-------------------------------------------------------------------------
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