Xeffects: finding shader files

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

Xeffects: finding shader files

Post by 3DModelerMan »

I want to use Xeffects in my game. The problem is that since it is shader based, and I need the HLSL files to be loaded by it for the shaders to work. I don't know how it finds the shaders without the Xeffects SDK being included in my project. Do I have to open up the source and change the paths to suit my project?
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Post by sudi »

YES
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Re: Xeffects: finding shader files

Post by BlindSide »

3DModelerMan wrote:I want to use Xeffects in my game. The problem is that since it is shader based, and I need the HLSL files to be loaded by it for the shaders to work. I don't know how it finds the shaders without the Xeffects SDK being included in my project. Do I have to open up the source and change the paths to suit my project?
There is a shader directory string param in the constructor, so you don't actually have to change the strings one-by-one.
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Post by sudi »

#define NO YES
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

Okay I'll use that

Post by 3DModelerMan »

Thanks for the help. I didn't see the constructor area.
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
Post Reply