Beispiel #1
0
 // material main surface inputs
 public override void DrawSurfaceInputs(Material material)
 {
     base.DrawSurfaceInputs(material);
     LitGUI.Inputs(litProperties, materialEditor, material);
     DrawEmissionProperties(material, true);
     DrawTileOffset(materialEditor, baseMapProp);
 }
Beispiel #2
0
        public static void UpdateMaterial(Material material, MaterialUpdateType updateType)
        {
            // newly created materials should initialize the globalIlluminationFlags (default is off)
            if (updateType == MaterialUpdateType.CreatedNewMaterial)
            {
                material.globalIlluminationFlags = MaterialGlobalIlluminationFlags.BakedEmissive;
            }

            BaseShaderGUI.UpdateMaterialSurfaceOptions(material, automaticRenderQueue: false);
            LitGUI.SetupSpecularWorkflowKeyword(material, out bool isSpecularWorkflow);
        }