Search Unity

Transparent Shader that doesn't show geo of itself behind its front facing polys

Discussion in 'Shaders' started by cesarmontero, Oct 22, 2018.

  1. cesarmontero

    cesarmontero

    Joined:
    Sep 10, 2018
    Posts:
    2
    I'm building a shader that has transparency and I want to make anything behind the transparent alpha to be 100% the background object, and not show any self-polygons of the mesh. Right now I can see the left leg shown through the right transparent leg. I don't want that. i want to see anything behind the object. How can i attain this?

    I'm new to writing shaders, and so far I've been able to put the build this using two textures, and a gradient for the transparency.

    upload_2018-10-22_12-11-0.png