UnlitInput.hlsl 902 B

12345678910111213141516171819202122232425
  1. #ifndef UNIVERSAL_UNLIT_INPUT_INCLUDED
  2. #define UNIVERSAL_UNLIT_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 _Surface;
  9. CBUFFER_END
  10. #ifdef UNITY_DOTS_INSTANCING_ENABLED
  11. UNITY_DOTS_INSTANCING_START(MaterialPropertyMetadata)
  12. UNITY_DOTS_INSTANCED_PROP(float4, _BaseColor)
  13. UNITY_DOTS_INSTANCED_PROP(float , _Cutoff)
  14. UNITY_DOTS_INSTANCED_PROP(float , _Surface)
  15. UNITY_DOTS_INSTANCING_END(MaterialPropertyMetadata)
  16. #define _BaseColor UNITY_ACCESS_DOTS_INSTANCED_PROP_FROM_MACRO(float4 , Metadata__BaseColor)
  17. #define _Cutoff UNITY_ACCESS_DOTS_INSTANCED_PROP_FROM_MACRO(float , Metadata__Cutoff)
  18. #define _Surface UNITY_ACCESS_DOTS_INSTANCED_PROP_FROM_MACRO(float , Metadata__Surface)
  19. #endif
  20. #endif