The problem is that I need the input texture to be a 3D texture and it looks dark
If I use the same texture saved as 2D dds it looks good:
Code: Select all
uniform sampler2D brushSampler;
void main()
{
vec4 brush = texture( brushSampler, vec2( inPs.uv0 ) );
outColour.xyz = brush.xyz;
}Code: Select all
uniform sampler3D brushSampler;
void main()
{
vec4 brush = texture( brushSampler, vec3( inPs.uv0 , 0 ) );
outColour.xyz = brush.xyz;
}I know the 3D texture is ok because I used it in Ogre 2.1 many times, seems like a bug on Ogre 2.2 to me.
thanks in advance!









