CTI URP Inputs.hlsl 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #ifndef INPUT_SURFACE_CTI_INCLUDED
  2. #define INPUT_SURFACE_CTI_INCLUDED
  3. #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl"
  4. #include "Packages/com.unity.render-pipelines.core/ShaderLibrary/CommonMaterial.hlsl"
  5. #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/SurfaceInput.hlsl"
  6. // Must be declared before we can include Lighting.hlsl
  7. struct AdditionalSurfaceData
  8. {
  9. half translucency;
  10. };
  11. #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Lighting.hlsl"
  12. #include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Color.hlsl"
  13. #include "Packages/com.unity.render-pipelines.core/ShaderLibrary/UnityInstancing.hlsl"
  14. CBUFFER_START(UnityPerMaterial)
  15. float4 _BaseMap_ST;
  16. half3 _BaseWindMultipliers;
  17. half _WindVariation;
  18. half4 _SpecColor;
  19. half4 _HueVariation;
  20. half _Smoothness;
  21. half _BackfaceSmoothness;
  22. // Leaf specific inputs
  23. half _Cutoff;
  24. half4 _Translucency;
  25. half _AmbientReflection;
  26. half _TumbleStrength;
  27. half _TumbleFrequency;
  28. half _LeafTurbulence;
  29. half _EdgeFlutterInfluence;
  30. // Billboard specific inputs
  31. half _AlphaLeak;
  32. half _OcclusionStrength;
  33. half _BumpScale;
  34. half _WindStrength;
  35. half _Wrap;
  36. // Fix for old bug
  37. half _BillboardScale;
  38. CBUFFER_END
  39. // Custom packed Map for Leaf and Billboard shader
  40. #if !defined(CTIBARK)
  41. TEXTURE2D(_BumpSpecMap); SAMPLER(sampler_BumpSpecMap);
  42. #else
  43. TEXTURE2D(_BumpOcclusionMap); SAMPLER(sampler_BumpOcclusionMap);
  44. #endif
  45. #if defined(CTIBARKARRAY)
  46. TEXTURE2D_ARRAY(_BaseMapArray); SAMPLER(sampler_BaseMapArray);
  47. TEXTURE2D_ARRAY(_BumpOcclusionMapArray); SAMPLER(sampler_BumpOcclusionMapArray);
  48. #endif
  49. #endif