Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: Set shader back to default tv3d shader  (Read 510 times)
petrus
Community Member
*
Posts: 96


« on: November 20, 2007, 06:14:45 AM »

I have a little problem. I want to be able to set a custom shader on my objects, render them to a render surface and then change back to the default TV3D shaders.
Is this possible, because I can't find the function for this.
For example: suppose my landscape editor uses a custom shader, but switching between editing and playing mode will require switching back to the default shader.
I'm sure there has to be something like this, but how? Cry
Logged
Zaknafein
Customers
Community Member
*****
Posts: 2670


WWW
« Reply #1 on: November 20, 2007, 07:07:31 AM »

SetShader(null/Nothing) should do the trick.
Logged

zaknafein.
>> the instruction limit : my blog & samples repository! <<
petrus
Community Member
*
Posts: 96


« Reply #2 on: November 20, 2007, 07:22:25 AM »

Great thanx. Wink
Logged
Pages: [1]
  Print  
 
Jump to:  

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