Search Unity

How to using Rendering Mode in standard shader for myself shader?

Discussion in 'Shaders' started by liuyu, Apr 26, 2015.

  1. liuyu

    liuyu

    Joined:
    Oct 14, 2014
    Posts:
    28
    Hi,
    I found the Standard Shader can using Rendering Mode [Opaque Cutout Fade Transparent].
    When I write myself shader, how to write code like Rendering Mode?
     
  2. Zicandar

    Zicandar

    Joined:
    Feb 10, 2014
    Posts:
    388
    It's actually part of their material editor, it sets a few things:
    ZWrite, AlphaBlend, a bunch of multicompile tags, RenderQue, and maybe some other stuff...
    To see how they do it look at the Standard shader and it's editor, you can download the built in shaders from here.
    http://unity3d.com/get-unity/download/archive
    Select to download the Built In Shaders.