You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
737 B
26 lines
737 B
using System; |
|
using UnityEngine; |
|
using UnityEngine.Rendering; |
|
|
|
namespace UnityEditor.Rendering.Universal.ShaderGUI |
|
{ |
|
public static class BakedLitGUI |
|
{ |
|
public struct BakedLitProperties |
|
{ |
|
// Surface Input Props |
|
public MaterialProperty bumpMapProp; |
|
|
|
public BakedLitProperties(MaterialProperty[] properties) |
|
{ |
|
// Surface Input Props |
|
bumpMapProp = BaseShaderGUI.FindProperty("_BumpMap", properties, false); |
|
} |
|
} |
|
|
|
public static void Inputs(BakedLitProperties properties, MaterialEditor materialEditor) |
|
{ |
|
BaseShaderGUI.DrawNormalArea(materialEditor, properties.bumpMapProp); |
|
} |
|
} |
|
}
|
|
|