You are supposed to pass it a texture (sampler), I guess ...
Does Ogre support this?
I got my hands on a lot of atmospheric shader scripts (*drool*), but a lot of them do texture lookups ..
It must be a recent technique, because it complains about it not being supported under 2.0 - do you know which version it wants? 2.1 ?
/* Less noise. More signal. */ Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion. OgreAddons - the Ogre code suppository.
nfz wrote:The first sampler variable defined is s0, the second is s1 and so on. The only time it doesn't work is if the sampler variable is not used in the shader or if you are combining fragmented HLSL shaders (similar to shader objects in GLSL) which Ogre doesnt support (yet).
To sum it up: the first sampler you define in your hlsl source corresponds to the first texture_unit in the pass of the technique in the material script and the second sampler defined refers to the second texture_unit and so on.