Hello everyone,
I downloaded a 3d model which is in 3ds file format. At first I distorted this
model in the vertex shader. Then I want to set the color of the model as same
as the original color, but I don't know how to do it.
I tried: 'gl_FragColor = gl_Color;' in the fragment shader, but then the model
showed is totally black. Would anyone help me on this?
Moreover, if the 3d model also used some textures, to coloring it, I think I
have to get the color of each vertex and then pass it to gl_FragColor. Would
someone tell me am I right? (I applied unlinear distortion to the model)
Thank you!
Cheers,
ying
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=60503#60503
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org