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?