UniversalStructs.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using UnityEditor.ShaderGraph;
  2. namespace UnityEditor.Rendering.Universal.ShaderGraph
  3. {
  4. static class UniversalStructs
  5. {
  6. public static StructDescriptor Varyings = new StructDescriptor()
  7. {
  8. name = "Varyings",
  9. packFields = true,
  10. populateWithCustomInterpolators = true,
  11. fields = new FieldDescriptor[]
  12. {
  13. StructFields.Varyings.positionCS,
  14. StructFields.Varyings.positionWS,
  15. StructFields.Varyings.normalWS,
  16. StructFields.Varyings.tangentWS,
  17. StructFields.Varyings.texCoord0,
  18. StructFields.Varyings.texCoord1,
  19. StructFields.Varyings.texCoord2,
  20. StructFields.Varyings.texCoord3,
  21. StructFields.Varyings.color,
  22. StructFields.Varyings.viewDirectionWS,
  23. StructFields.Varyings.screenPosition,
  24. UniversalStructFields.Varyings.staticLightmapUV,
  25. UniversalStructFields.Varyings.dynamicLightmapUV,
  26. UniversalStructFields.Varyings.sh,
  27. UniversalStructFields.Varyings.fogFactorAndVertexLight,
  28. UniversalStructFields.Varyings.shadowCoord,
  29. UniversalStructFields.Varyings.curPositionCS,
  30. UniversalStructFields.Varyings.prevPositionCS,
  31. StructFields.Varyings.instanceID,
  32. UniversalStructFields.Varyings.stereoTargetEyeIndexAsBlendIdx0,
  33. UniversalStructFields.Varyings.stereoTargetEyeIndexAsRTArrayIdx,
  34. StructFields.Varyings.cullFace,
  35. }
  36. };
  37. }
  38. }