Xeffects: finding shader files
-
- Posts: 1691
- Joined: Sun May 18, 2008 9:42 pm
Xeffects: finding shader files
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
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
Re: Xeffects: finding shader files
There is a shader directory string param in the constructor, so you don't actually have to change the strings one-by-one.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?
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
-
- Posts: 1691
- Joined: Sun May 18, 2008 9:42 pm
Okay I'll use that
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
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar