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.
23 lines
1.0 KiB
23 lines
1.0 KiB
// 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 DistortionPropertyBlock : SubTargetPropertyBlock
|
|
{
|
|
protected override string title => "Distortion";
|
|
protected override int foldoutIndex => 1;
|
|
|
|
protected override void CreatePropertyGUI()
|
|
{
|
|
AddProperty(distortionEnableText, () => builtinData.distortion, (newValue) => builtinData.distortion = newValue);
|
|
if (builtinData.distortion)
|
|
{
|
|
context.globalIndentLevel++;
|
|
AddProperty(distortionBlendModeText, () => builtinData.distortionMode, (newValue) => builtinData.distortionMode = newValue);
|
|
AddProperty(distortionDepthTestText, () => builtinData.distortionDepthTest, (newValue) => builtinData.distortionDepthTest = newValue);
|
|
context.globalIndentLevel--;
|
|
}
|
|
}
|
|
}
|
|
}
|