Advertisement
Zgragselus

Untitled

Mar 5th, 2023
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. struct Light
  2. {
  3. float4 position;
  4. float4 positionVS;
  5. float4 color;
  6.  
  7. float4 data0;
  8.  
  9. float4 data1;
  10.  
  11. float4 data2;
  12.  
  13. float4 data4;
  14.  
  15. float4 data5;
  16.  
  17. uint type;
  18. int shadowID;
  19. float shadowNear;
  20. float shadowFar;
  21. float shadowResolution;
  22. float shadowScale;
  23. int shadowFilter;
  24. float offset;
  25. float4 data3;
  26. };
  27.  
  28. struct DirectionalLight
  29. {
  30. float4 position;
  31. float4 positionVS;
  32. float4 color;
  33.  
  34. float4 dirDirection;
  35.  
  36. int numCascades;
  37. float lambda;
  38. uint unionPad[2];
  39.  
  40. int cascadeShadowID[4];
  41.  
  42. float cascadeShadowClip[4];
  43.  
  44. float4 dirDirectionVS;
  45.  
  46. uint type;
  47. int shadowID;
  48. float shadowNear;
  49. float shadowFar;
  50. float shadowResolution;
  51. float shadowScale;
  52. int shadowFilter;
  53. float offset;
  54. float4 data3;
  55. };
  56.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement