BakedLitInput.hlsl 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. #ifndef UNIVERSAL_BAKEDLIT_INPUT_INCLUDED
  2. #define UNIVERSAL_BAKEDLIT_INPUT_INCLUDED
  3. #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/SurfaceInput.hlsl"
  4. CBUFFER_START(UnityPerMaterial)
  5. float4 _BaseMap_ST;
  6. half4 _BaseColor;
  7. half _Cutoff;
  8. half _Glossiness;
  9. half _Metallic;
  10. half _Surface;
  11. CBUFFER_END
  12. #ifdef UNITY_DOTS_INSTANCING_ENABLED
  13. UNITY_DOTS_INSTANCING_START(MaterialPropertyMetadata)
  14. UNITY_DOTS_INSTANCED_PROP(float4, _BaseColor)
  15. UNITY_DOTS_INSTANCED_PROP(float , _Cutoff)
  16. UNITY_DOTS_INSTANCED_PROP(float , _Glossiness)
  17. UNITY_DOTS_INSTANCED_PROP(float , _Metallic)
  18. UNITY_DOTS_INSTANCED_PROP(float , _Surface)
  19. UNITY_DOTS_INSTANCING_END(MaterialPropertyMetadata)
  20. #define _BaseColor UNITY_ACCESS_DOTS_INSTANCED_PROP_FROM_MACRO(float4 , Metadata_BaseColor)
  21. #define _Cutoff UNITY_ACCESS_DOTS_INSTANCED_PROP_FROM_MACRO(float , Metadata_Cutoff)
  22. #define _Glossiness UNITY_ACCESS_DOTS_INSTANCED_PROP_FROM_MACRO(float , Metadata_Glossiness)
  23. #define _Metallic UNITY_ACCESS_DOTS_INSTANCED_PROP_FROM_MACRO(float , Metadata_Metallic)
  24. #define _Surface UNITY_ACCESS_DOTS_INSTANCED_PROP_FROM_MACRO(float , Metadata_Surface)
  25. #endif
  26. #endif