Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: Where to put shaders..  (Read 605 times)
nateslunaXX
Community Member
*
Posts: 229

Be cool..! Study Hard...


« on: January 05, 2008, 08:17:08 AM »

Hello, so i get this Shader from GroundZero Development..one of the links in the resource section..it's called shadowMapping..so how would i know where to incorporate or set the shader? i am really curious as to how you guys know where and to which you put the shaders..

thanks in advance.
Logged


Nathan Alcon, BSIT - Life is a never ending Cycle of Learning
newborn
Customers
Community Member
*****
Posts: 2433


WWW
« Reply #1 on: January 05, 2008, 11:13:17 AM »

I think you will have to do a bit more than just plugging it in.

Take the example that Sylvain posted about that empty "fullscreen shader" and then fill it up with whatever you got from groundzero.

Then you have to:

tvShader.CreateFromFile(sYourPath & "myshader.fx")
tvMesh.SetShader(tvShader)
Logged

nateslunaXX
Community Member
*
Posts: 229

Be cool..! Study Hard...


« Reply #2 on: January 06, 2008, 06:33:59 PM »

oh i see i see... thanks!

i really thought it was just plug n play.


thank you thank you!
Logged


Nathan Alcon, BSIT - Life is a never ending Cycle of Learning
Pages: [1]
  Print  
 
Jump to:  

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