Hi Folks,

I am using PerPixel lighting on my some model which has created with
Blender. My model has lots of textures on it. And my question is, do I have
to send all textures in uniform variable to shader? That makes all think to
complex, doesn't that? I have try to send only one texture to shader and saw
that it can texture all of texture on my model instead of only send one.

Then I realize that declared "uniform sampler2 sampleTexture" definition
doesn't hold the related texture file. It only hold texture unit, I mean 0,1
or 7. My question is what is the standart shadering operation when we have
canned model? Should we send texture's to shader or what else? And sending
texture is meaningless, because if we have ive or another texture integrated
model what should we do this time? We haven't related texture separately?
This time what should we send?

Thanks in advance.
Regards.

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

Reply via email to