Search Unity

Transparent cutout soft edge unlit

Discussion in 'Shaders' started by PulseHunter, Jun 10, 2014.

  1. PulseHunter

    PulseHunter

    Joined:
    Jul 31, 2013
    Posts:
    23
    Hi,

    I have tried to look at forum & answers for "transparent cutout soft edge unlit" shader, but for mobile (android & IOS).

    I have not found a solution yet.

    Im very bad at writing shaders(May improve in the furture). But i dont mind give it a go.

    Can anyone point me in a direction ?

    - How to start learning shader ect.

    or maby a kind soul out there know or had made a mobile version


    Regards
     
  2. Daniel_Brauer

    Daniel_Brauer

    Unity Technologies

    Joined:
    Aug 11, 2006
    Posts:
    3,355
    As I understand it, the reason that you don't want to use cutout shaders on any mobile devices is because they tend to use tile-based deferred renderers, which are slowed down enormously by alpha testing and discard commands. This means that there is no fast equivalent to cutout foliage on mobile.

    One thing you could do for the same effect is separate your foliage into hard and soft submeshes. Render one opaque, and the other with a transparent shader.
     
  3. PulseHunter

    PulseHunter

    Joined:
    Jul 31, 2013
    Posts:
    23
    Hi,

    Thanks for the reply.

    I have spent some days looking at what you have sugsted.

    I have not come up with a solution(yet) :/


    The Reason i want to use "transparent cutout soft edge unlit" shader is because i want to show this image ontop of another image:

    The Image i want to show with the shader is this one :
     

    Attached Files:

  4. Daniel_Brauer

    Daniel_Brauer

    Unity Technologies

    Joined:
    Aug 11, 2006
    Posts:
    3,355
    It's not clear to me at all why that image necessitates that particular shader.