Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

How to use Hidden/MyShader

Discussion in 'Shaders' started by liuyu, Jan 2, 2015.

  1. liuyu

    liuyu

    Joined:
    Oct 14, 2014
    Posts:
    28
    Hi,

    I download builtin_shaders-4.6.0, There are many shaders like <Shader "Hidden/Internal-CombineDepthNormals"> and so on.

    So I write a postprocess, it will use the shader:

    Shader "Hidden/PPGray" {
    ...
    }

    How to use it in C# script? Because I don't want the artists to set it.
    Thank you.
     
  2. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,448
    Shader.Find it probably what you're after:
    Code (CSharp):
    1. Shader.Find("Hidden/PPGray")
     
  3. liuyu

    liuyu

    Joined:
    Oct 14, 2014
    Posts:
    28
    Oh, Peter77,
    It's ok!
    Thank you very much.