Geen omschrijving
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.

GradientMaterialSlot.cs 1.0KB

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using UnityEditor.Graphing;
  3. namespace UnityEditor.ShaderGraph
  4. {
  5. [Serializable]
  6. class GradientMaterialSlot : MaterialSlot
  7. {
  8. public GradientMaterialSlot()
  9. { }
  10. public GradientMaterialSlot(
  11. int slotId,
  12. string displayName,
  13. string shaderOutputName,
  14. SlotType slotType,
  15. ShaderStageCapability stageCapability = ShaderStageCapability.All,
  16. bool hidden = false)
  17. : base(slotId, displayName, shaderOutputName, slotType, stageCapability, hidden)
  18. { }
  19. public override SlotValueType valueType { get { return SlotValueType.Gradient; } }
  20. public override ConcreteSlotValueType concreteValueType { get { return ConcreteSlotValueType.Gradient; } }
  21. public override bool isDefaultValue => true;
  22. public override void AddDefaultProperty(PropertyCollector properties, GenerationMode generationMode)
  23. { }
  24. public override void CopyValuesFrom(MaterialSlot foundSlot)
  25. { }
  26. }
  27. }