Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: duplicate shader?  (Read 1156 times)
tedlin01
Customers
Community Member
*****
Posts: 140


WWW
« on: October 19, 2009, 06:50:58 AM »

Is there someway to duplicate shaders?

I have like 300 meshes and I need one shader each since I want to change the materialsettings during runtime. Eventually if there is some other way I can set the material with some sematic or something it would be appriciated.
Logged

tedlin01
Customers
Community Member
*****
Posts: 140


WWW
« Reply #1 on: October 19, 2009, 08:39:57 AM »

http://wiki.truevision3d.com/semantics
Logged

sybixsus
Customers
Community Member
*****
Posts: 1339


WWW
« Reply #2 on: October 19, 2009, 01:59:16 PM »

Yes, definitely do not create 300 shaders. Your framerate will go through the floor with all those expensive state changes. Binding a shader is one of the most expensive state changes too.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks