X
x
Still fairly new at this, I have been trying to find out how to compile and
effect with multiple samplers.
Been able to find loads of examples that show the HSL code once the samplers
are loaded, but not how to get the textures from VB into the shader.
If i set up two samplers in the shader with no associated texture then when
I compile the shader from string works fine.
but when the shader actually runs both sample the same texture rather than
different ones.
I can pass a texture in as a parameter but get told I cant sample it
intrinsically.
All the examples I can find seem to assume you know how to do this already.
Very frustrating.
I know you can use the commands:
PvDev.settexture(0,texA)
and
PvDev.settexture(1.texB)
and that this presumably sets up two samplers but as mentioned, both sample
texA. Obviously I am missing something any ideas?
thanks in advance.
effect with multiple samplers.
Been able to find loads of examples that show the HSL code once the samplers
are loaded, but not how to get the textures from VB into the shader.
If i set up two samplers in the shader with no associated texture then when
I compile the shader from string works fine.
but when the shader actually runs both sample the same texture rather than
different ones.
I can pass a texture in as a parameter but get told I cant sample it
intrinsically.
All the examples I can find seem to assume you know how to do this already.
Very frustrating.
I know you can use the commands:
PvDev.settexture(0,texA)
and
PvDev.settexture(1.texB)
and that this presumably sets up two samplers but as mentioned, both sample
texA. Obviously I am missing something any ideas?
thanks in advance.