Shading several objects

How can I draw several objects, some with shading and the remaining without or with another shading?

THX for help.

All you have to do is to bind another shader ( glUseProgramObjectARB(ShaderId)) for each of these objects (shader 0 for those without shading). It could be a good idea to group objects with the same shader so that you could reduce the number of switches. Or in some specific cases you could write a single big supershader containing smaller ones and controll its execution with uniforms. I hope that’s the answer you sought…

Thanks,it’s realy work.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.