Hi Guys, I am new and this is my first post forgive my ignorance!
I developed an app that used MDX and effect files. In my original code I was passing a texture to the shader as a parameter. I am now trying to port it to use the Irrlicht engine (.NET version).
Whilst I have only been looking at Irrlicht for a few days, and I am still getting to grips with how it uses shaders, I cannot see an obvious way to pass a texture to a shader. The SetPixelShaderConstant and SetVertexShaderConstant methods only take floats.
I might just be being dumb, but any enlightenment very much appreciated.
HLSL - passing a texture
Re: HLSL - passing a texture
You don't set textures. Irrlicht has done it for you at the point when the shader is called.andrewdfrost wrote:I might just be being dumb, but any enlightenment very much appreciated.
There's some Irrlicht/shader stuff on my website: http://sio2.g0dsoft.com
-
- Posts: 13
- Joined: Mon Feb 05, 2007 2:05 pm
-
- Posts: 13
- Joined: Mon Feb 05, 2007 2:05 pm