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.
25 lines
1006 B
25 lines
1006 B
using UnityEngine;
|
|
|
|
namespace UnityEditor.Rendering.HighDefinition.ShaderGraph
|
|
{
|
|
class SixWaySurfaceOptionPropertyBlock : SurfaceOptionPropertyBlock
|
|
{
|
|
HDSixWayData sixWayData;
|
|
|
|
class Styles
|
|
{
|
|
public static GUIContent receiveShadows = new GUIContent("Receive Shadows", "Receive Shadows");
|
|
public static GUIContent useColorAbsorption = new GUIContent("Use Color Absorption", "Use Color Absorption");
|
|
}
|
|
|
|
public SixWaySurfaceOptionPropertyBlock(HDSixWayData sixWayData) : base(Features.Unlit)
|
|
=> this.sixWayData = sixWayData;
|
|
|
|
protected override void CreatePropertyGUI()
|
|
{
|
|
base.CreatePropertyGUI();
|
|
AddProperty(Styles.receiveShadows, () => sixWayData.receiveShadows, (newValue) => sixWayData.receiveShadows = newValue);
|
|
AddProperty(Styles.useColorAbsorption, () => sixWayData.useColorAbsorption, (newValue) => sixWayData.useColorAbsorption = newValue);
|
|
}
|
|
}
|
|
}
|