Im trying to create mask based on color and use it to lerp different effect into material. My problem is that lerp function is not accurate. If i setup the material as follows :
then the result is
The texture is created in ms-paint(red rectangle[1,0,0] and green[0,1,0] ) and there is no compression, no sRGB, no mipmaps and yet the mask wich should be precise generates pixel wide "border". Maybe i'm missing something, im do not have much experience with materials, but this seems like a bug to me.
Did anyone encounter similar problem? Is there a fix or work around? I really don't want to create separate textures with inflated masks just for this...
asked Mar 02 '19 at 09:08 PM in Rendering
its not inaccurate, as your texture gets interpolated between pixels when you display it in higher resolution, which is 100% normal GPU does that by default, your rec color slides down at the end in lerps to original image which makes red color leak in to it. I don't know what exactly you want to do you might want to use "If" node instead of Lerp. Or maybe you should use some real case scenerio what ever oyu trying to do
Follow this question
Once you sign in you will be able to subscribe for any updates here