// material main surface inputs
 public override void DrawSurfaceInputs(Material material)
 {
     base.DrawSurfaceInputs(material);
     LitGUI.Inputs(litProperties, materialEditor, material);
     DrawEmissionProperties(material, true);
     DrawTileOffset(materialEditor, baseMapProp);
 }
Example #2
0
        public static void DoSpecularArea(SimpleLitProperties properties, MaterialEditor materialEditor, Material material)
        {
            SpecularSource specSource = (SpecularSource)properties.specHighlights.floatValue;

            EditorGUI.BeginDisabledGroup(specSource == SpecularSource.NoSpecular);
            BaseShaderGUI.TextureColorProps(materialEditor, Styles.specularMapText, properties.specGlossMap, properties.specColor, true);
            LitGUI.DoSmoothness(materialEditor, material, properties.smoothness, properties.smoothnessMapChannel, LitGUI.Styles.specularSmoothnessChannelNames);
            EditorGUI.EndDisabledGroup();
        }