HLSL - passing a texture
Posted: Thu Feb 08, 2007 7:54 pm
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.
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.