Search Unity

Simple Alpha shader wihout texture

Discussion in 'Shaders' started by cosmologosaurusrex, Jul 1, 2015.

  1. cosmologosaurusrex

    cosmologosaurusrex

    Joined:
    Jul 1, 2015
    Posts:
    50
    So I don't use textures in my game but i want to have transparency on my object. I want to control the opacity of the model by code and when alpha = 1 I want it to have no opacity, not even with itself. I was able to control the opacity on the diffuse/transparent material, but when Alpha is one it is transparent to its own polygons.

    If you could post the entire shader that could do this that would be swell. I aim to learn shaders but I think looking at a code that works is a great learning experience.
     
  2. cosmologosaurusrex

    cosmologosaurusrex

    Joined:
    Jul 1, 2015
    Posts:
    50