UniversalProperties.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using UnityEditor;
  3. using UnityEditor.ShaderGraph;
  4. using UnityEditor.ShaderGraph.Internal;
  5. using UnityEditor.Rendering.Universal.ShaderGraph;
  6. using UnityEngine.Rendering.Universal;
  7. namespace UnityEditor.Rendering.Universal
  8. {
  9. internal static class Property
  10. {
  11. public static readonly string SpecularWorkflowMode = "_WorkflowMode";
  12. public static readonly string SurfaceType = "_Surface";
  13. public static readonly string BlendMode = "_Blend";
  14. public static readonly string AlphaClip = "_AlphaClip";
  15. public static readonly string SrcBlend = "_SrcBlend";
  16. public static readonly string DstBlend = "_DstBlend";
  17. public static readonly string ZWrite = "_ZWrite";
  18. public static readonly string CullMode = "_Cull";
  19. public static readonly string CastShadows = "_CastShadows";
  20. public static readonly string ReceiveShadows = "_ReceiveShadows";
  21. public static readonly string QueueOffset = "_QueueOffset";
  22. // for ShaderGraph shaders only
  23. public static readonly string ZTest = "_ZTest";
  24. public static readonly string ZWriteControl = "_ZWriteControl";
  25. public static readonly string QueueControl = "_QueueControl";
  26. // Global Illumination requires some properties to be named specifically:
  27. public static readonly string EmissionMap = "_EmissionMap";
  28. public static readonly string EmissionColor = "_EmissionColor";
  29. }
  30. }