Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question Disabling Metallic In Shader

Discussion in 'Shaders' started by Littlenorwegian, Jun 13, 2024.

  1. Littlenorwegian

    Littlenorwegian

    Joined:
    Oct 19, 2012
    Posts:
    145
    Hello!

    I am doing a setup with a shader that requires me to disable any form of glossiness.

    I have added
    Code (CSharp):
    1.                 #pragma shader_feature_local _SPECULARHIGHLIGHTS_OFF
    2.  
    Which works just fine on disabling specularity. What do I do for metallic?

    #pragma shader_feature_local _METALLICGLOSSMAP_OFF
    #pragma shader_feature_local _ENVIRONMENTREFLECTIONS_OFF
    #pragma shader_feature_local _GLOSSYREFLECTIONS_OFF

    None of these seem to do the job, so I'm obviously missing something. I am no shader expert so any help is appreciated.