>From the documentation, the --layer flag allows me to "Specify the layer that 
>the next source Texture will contribute to."  

1.  Does this indexing start at 0 or 1?

2.  Can I access these layered textures in a GLSL vertex shader using 

Code:
gl_TexCoord[n] = gl_MultiTexCoordn;


and access that layer texture's color in the frag shader using

Code:
vec4 color = texture2D(baseTexture, gl_TexCoord[n].st);


where n is the layer number?[/code]

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=48772#48772





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to