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.
19 lines
707 B
19 lines
707 B
// We share the name of the properties in the UI to avoid duplication
|
|
using static UnityEditor.Rendering.HighDefinition.DistortionUIBlock.Styles;
|
|
|
|
namespace UnityEditor.Rendering.HighDefinition.ShaderGraph
|
|
{
|
|
class HDUnlitDistortionPropertyBlock : DistortionPropertyBlock
|
|
{
|
|
HDUnlitData unlitData;
|
|
|
|
public HDUnlitDistortionPropertyBlock(HDUnlitData unlitData) => this.unlitData = unlitData;
|
|
|
|
protected override void CreatePropertyGUI()
|
|
{
|
|
base.CreatePropertyGUI();
|
|
if (builtinData.distortion)
|
|
AddProperty(distortionOnlyText, () => unlitData.distortionOnly, (newValue) => unlitData.distortionOnly = newValue, 1);
|
|
}
|
|
}
|
|
}
|