Example #1
0
 public LitProperties(MaterialProperty[] properties)
 {
     // Surface Input Props
     mraMap            = BaseShaderGUI.FindProperty("_MRAMap", properties);
     metallic          = BaseShaderGUI.FindProperty("_Metallic", properties);
     metallicMapScale  = BaseShaderGUI.FindProperty("_MetallicMapScale", properties);
     roughness         = BaseShaderGUI.FindProperty("_Roughness", properties, false);
     roughnessMapScale = BaseShaderGUI.FindProperty("_RoughnessMapScale", properties, false);
     bumpMapProp       = BaseShaderGUI.FindProperty("_BumpMap", properties, false);
     bumpScaleProp     = BaseShaderGUI.FindProperty("_BumpScale", properties, false);
     occlusionStrength = BaseShaderGUI.FindProperty("_OcclusionStrength", properties, false);
     // Advanced Props
     highlights  = BaseShaderGUI.FindProperty("_SpecularHighlights", properties, false);
     reflections = BaseShaderGUI.FindProperty("_EnvironmentReflections", properties, false);
 }
Example #2
0
 public static void Inputs(LitProperties properties, MaterialEditor materialEditor, Material material)
 {
     DoMRAArea(properties, materialEditor, material);
     BaseShaderGUI.DrawNormalArea(materialEditor, properties.bumpMapProp, properties.bumpScaleProp);
 }