UniversalBlockFields.cs 1.0 KB

123456789101112131415161718192021
  1. using UnityEngine;
  2. using UnityEditor.ShaderGraph;
  3. namespace UnityEditor.Rendering.Universal.ShaderGraph
  4. {
  5. static class UniversalBlockFields
  6. {
  7. [GenerateBlocks("Universal Render Pipeline")]
  8. public struct SurfaceDescription
  9. {
  10. public static string name = "SurfaceDescription";
  11. public static BlockFieldDescriptor SpriteMask = new BlockFieldDescriptor(SurfaceDescription.name, "SpriteMask", "Sprite Mask", "SURFACEDESCRIPTION_SPRITEMASK",
  12. new ColorRGBAControl(new Color(1, 1, 1, 1)), ShaderStage.Fragment);
  13. public static BlockFieldDescriptor NormalAlpha = new BlockFieldDescriptor(SurfaceDescription.name, "NormalAlpha", "Normal Alpha", "SURFACEDESCRIPTION_NORMALALPHA",
  14. new FloatControl(1.0f), ShaderStage.Fragment);
  15. public static BlockFieldDescriptor MAOSAlpha = new BlockFieldDescriptor(SurfaceDescription.name, "MAOSAlpha", "MAOS Alpha", "SURFACEDESCRIPTION_MAOSALPHA",
  16. new FloatControl(1.0f), ShaderStage.Fragment);
  17. }
  18. }
  19. }