docs.unity3d.com
    Show / Hide Table of Contents

    Shader Settings

    The Shader Settings provide basic settings that aren't specific to cel-shading but are necessary for general CG.



    • Culling Mode
    • Auto Render Queue
      • Render Queue
    • Transparency
    • Stencil
      • Stencil Value
    • Clipping
      • Clipping Mask
      • Invert Clipping Mask
      • Clipping Level
      • Transparency Level
      • Use Base Map Alpha as Clipping Mask

    Culling Mode

    Culling Mode Description
    Back Don't render polygons that are facing away from the viewer (default) i.e. back-facing polygons are culled.
    Front Don't render polygons that are facing towards the viewer. Used for turning objects inside-out.
    Off Disables culling - all faces are drawn. Used for special effects.

    Auto Render Queue

    When enabled, system automatically determines rendering order.

    Render Queue

    Rendering order in the scene.

    Transparency

    Enables different modes that allow the simulation of a variety of transparent objects.

    Stencil

    Control the stencil buffer which manipulates pixel drawing.

    Stencil Description
    Replace Stencil Buffer with Replaces a pixel value in stencil buffer with Stencil Value when drawing.
    Draw If Not Equal to Draw a pixel when the number in stencil buffer isn't equal to Stencil Value.
    Off Nothing is written to stencil buffer and Stencil Value doesn't affect at all when drawing.

    Stencil Value

    Stencil value that's submitted to the stencil buffer for controlling the per-pixel drawing. Min is 0. Max is 255. The default is 0.

    Clipping

    Allow for the use of a texture to control the transparency of the shader.

    Clipping Description
    Off Disable clipping.
    On Enable clipping.
    Clip Transparency Enable clipping with Transparency Level.

    Clipping Mask

    A gray scale texture which utilises its brightness to control transparency.

    Invert Clipping Mask

    Invert clipping mask results.

    Clipping Level

    Specifies the strength of the clipping mask.

    Transparency Level

    Adjusts the transparency by considering the gray scale level of the clipping mask as an alpha value.

    Use Base Map Alpha as Clipping Mask

    Use Base Map Alpha as Clipping Mask instead of Clipping mask texture.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023