Hi Theo,
Theo Satoshi Tanaka wrote:
> Hi,
>
> I created a GLSL shader with the mental mill program (available with
> NVIDIA FX Composer 2.0), and I almost got it working in OpenSG. I just
> need to set correctly a few variables from the shader. One of them is a
> Cube Map texture (variable samplerCube in GLSL). How do I send a texture
> information from the OpenSG to the shader? All the "setUniformParameter"
> methods are only for numeric variables, so I'm kind of lost about what
> to do...
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()).
Hope it helps
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