using System;
using UnityEngine;
using UnityEngine.Rendering;
namespace UnityEditor.Rendering.Universal.ShaderGUI
{
///
/// Editor script for the BakedLit material inspector.
///
public static class BakedLitGUI
{
///
/// Container for the properties used in the BakedLitGUI editor script.
///
public struct BakedLitProperties
{
// Surface Input Props
///
/// The MaterialProperty for normal map.
///
public MaterialProperty bumpMapProp;
///
/// Constructor for the BakedLitProperties container struct.
///
///
public BakedLitProperties(MaterialProperty[] properties)
{
// Surface Input Props
bumpMapProp = BaseShaderGUI.FindProperty("_BumpMap", properties, false);
}
}
///
/// Draws the surface inputs GUI.
///
///
///
public static void Inputs(BakedLitProperties properties, MaterialEditor materialEditor)
{
BaseShaderGUI.DrawNormalArea(materialEditor, properties.bumpMapProp);
}
}
}