Hi,

I'm trying to use the "useVertexAttributeAliasing".

Nearly all my shaders are ported and now works, but I have a problem with the 
vertex color :

in case of "useVertexAttributeAliasing", vertex colors are binded as an 
attribute using :


Code:
setVertexAttribPointer(_colorAlias._location, size, type, GL_FALSE, stride, 
ptr);



With "normalization = GL_FALSE"

So, in my shaders, I get vertex colors values between 0 and 255.

Should this line be :


Code:
setVertexAttribPointer(_colorAlias._location, size, type, [b]GL_TRUE[/b], 
stride, ptr);



So we always get values between 0.0 and 1.0 in shaders, even if we use vec4ub 
colors or vec4f colors ?

Thank you!

Cheers,
Aurelien

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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to