Code: Select all
sampler base_texture;
// Constants
float3 color;
float4 main(float2 uv : TEXCOORD0) : COLOR
{
float4 Out;
Out = tex2D(base_texture, uv);
Out.rgb *= color;
return Out;
}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 ?
