Aucune description
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

UniversalBlockFields.cs 1.5KB

1234567891011121314151617181920212223242526272829
  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 VertexDescription
  9. {
  10. public static string name = "VertexDescription";
  11. public static BlockFieldDescriptor MotionVector = new BlockFieldDescriptor(VertexDescription.name, "MotionVector", "Motion Vector", "VERTEXDESCRIPTION_MOTIONVECTOR",
  12. new Vector3Control(new Vector3(0.0f, 0.0f, 0.0f)), ShaderStage.Vertex);
  13. }
  14. [GenerateBlocks("Universal Render Pipeline")]
  15. public struct SurfaceDescription
  16. {
  17. public static string name = "SurfaceDescription";
  18. public static BlockFieldDescriptor SpriteMask = new BlockFieldDescriptor(SurfaceDescription.name, "SpriteMask", "Sprite Mask", "SURFACEDESCRIPTION_SPRITEMASK",
  19. new ColorRGBAControl(new Color(1, 1, 1, 1)), ShaderStage.Fragment);
  20. public static BlockFieldDescriptor NormalAlpha = new BlockFieldDescriptor(SurfaceDescription.name, "NormalAlpha", "Normal Alpha", "SURFACEDESCRIPTION_NORMALALPHA",
  21. new FloatControl(1.0f), ShaderStage.Fragment);
  22. public static BlockFieldDescriptor MAOSAlpha = new BlockFieldDescriptor(SurfaceDescription.name, "MAOSAlpha", "MAOS Alpha", "SURFACEDESCRIPTION_MAOSALPHA",
  23. new FloatControl(1.0f), ShaderStage.Fragment);
  24. }
  25. }
  26. }