SpeedTree7CommonInput.hlsl 831 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef UNIVERSAL_SPEEDTREE7COMMON_INPUT_INCLUDED
  2. #define UNIVERSAL_SPEEDTREE7COMMON_INPUT_INCLUDED
  3. #ifdef EFFECT_BUMP
  4. #define _NORMALMAP
  5. #endif
  6. #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl"
  7. #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/SurfaceInput.hlsl"
  8. #ifdef ENABLE_WIND
  9. #define WIND_QUALITY_NONE 0
  10. #define WIND_QUALITY_FASTEST 1
  11. #define WIND_QUALITY_FAST 2
  12. #define WIND_QUALITY_BETTER 3
  13. #define WIND_QUALITY_BEST 4
  14. #define WIND_QUALITY_PALM 5
  15. uniform half _WindQuality;
  16. uniform half _WindEnabled;
  17. #include "SpeedTreeWind.cginc"
  18. #endif
  19. TEXTURE2D(_MainTex);
  20. SAMPLER(sampler_MainTex);
  21. #ifdef EFFECT_HUE_VARIATION
  22. half4 _HueVariation;
  23. #endif
  24. half4 _Color;
  25. float3 _LightDirection;
  26. #endif