SpeedTree7BillboardInput.hlsl 775 B

12345678910111213141516171819202122232425
  1. #ifndef UNIVERSAL_SPEEDTREE7BILLBOARD_INPUT_INCLUDED
  2. #define UNIVERSAL_SPEEDTREE7BILLBOARD_INPUT_INCLUDED
  3. #define SPEEDTREE_PI 3.14159265359
  4. #define SPEEDTREE_ALPHATEST
  5. half _Cutoff;
  6. #include "SpeedTree7CommonInput.hlsl"
  7. CBUFFER_START(UnityBillboardPerCamera)
  8. float3 unity_BillboardNormal;
  9. float3 unity_BillboardTangent;
  10. float4 unity_BillboardCameraParams;
  11. #define unity_BillboardCameraPosition (unity_BillboardCameraParams.xyz)
  12. #define unity_BillboardCameraXZAngle (unity_BillboardCameraParams.w)
  13. CBUFFER_END
  14. CBUFFER_START(UnityBillboardPerBatch)
  15. float4 unity_BillboardInfo; // x: num of billboard slices; y: 1.0f / (delta angle between slices)
  16. float4 unity_BillboardSize; // x: width; y: height; z: bottom
  17. float4 unity_BillboardImageTexCoords[16];
  18. CBUFFER_END
  19. #endif