Using 3 channels texture format,. samplers are not allowed?

Hey guys,

wrote an effect and I am trying to use a saved frame into the shader. It Works, but I constantly get this error message and the node gets red and unstable.

This is the error message in TTY:
Using 3 channels texture format, samplers are not allowed in this case, use load only.

I tried googling and searching, but found no fix or documentation.

My workflow: I saved a texture with the writer node to a .png (.bmp for debugging, same problem) and then load it with fileTexture and feed it into the shader.

I am new to shaders so I try to load the texture with the typical boilerplate code:

texture Italy <string uiname=“Italy”;>;
sampler Samp3 = sampler_state //sampler for doing the texture-lookup
{
Texture = (Italy); //apply a texture to the sampler
MipFilter = LINEAR; //sampler states
MinFilter = LINEAR;
MagFilter = LINEAR;
} ;

what am I missing?

can you show us the line where the Samp3 get’s used? you seem to have some mix up with data types there.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.