View Full Version : Shading several objects
12-11-2004, 09:53 PM
How can I draw several objects, some with shading and the remaining without or with another shading?
THX for help.
12-11-2004, 10:27 PM
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...
12-11-2004, 10:57 PM
Thanks,it's realy work.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.