- Home /
Question by
smithdam1 · Nov 12, 2018 at 02:58 AM ·
shadershader programmingalpha-channel
Shaders, how can I set a texture as the alpha of another?
I need to set the alpha of a specific texture in the shader to a render texture. I need it to not control the entire things alpha, only specified textures. the shaders purpose is to allow the user to erase part of a texture to reveal the texture underneath.
Comment
you can add another texture to your shader that is not shown and just change the main textures colors alpha to match it in you shader script. then you change the secondary textures alpha with texture2D.setpixel or setpixels through c#.
Your answer

Follow this Question
Related Questions
How can i add transparency to this shader? 1 Answer
Shader Graph not showing when included in build? 0 Answers
Shader Problem 0 Answers
Need help with using world position in shader 1 Answer
calculating 1 Answer