Why cant I use an image alpha to split the Metallic/Spec/Roughness?

Hi All,

I want to use a simple lerp to split out two constant values on my material. I want to have specific Metallic, Spec and Roughness according to a black and white alpha image, but i get an error every time. It should be simple no? Anyone know why am I getting this error and how do i get around it?

Thx

Because you’re plugging float3 into float. The last pin is alpha.

Can you elaborate? I don’t know what that means.

Yes, you should plug only one of the channel
Using a texture for a single black & white mask means that you have that same mask on the three channels
You should take a look at some channel packing techniques so you could save some texture memory using the 3 (or 4) channels as individual masks

The last pin on the Texture Sample node is alpha. You’re using the entire image as alpha.

249949-untitled.png

The details are somewhere in the middle of this doc, search for The TextureSample expression outputs:

Ahhhhh, that makes sense now! Thanks for the help.