Advertisement
Zgragselus

Untitled

Jan 31st, 2023
823
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.46 KB | None | 0 0
  1. struct Light
  2. {
  3.     float4 position;
  4.     float4 positionVS;
  5.     float4 color;
  6.     float4 data0;
  7.     float4 data1;
  8.     float4 data2;
  9.     float4 data4;
  10.     float4 data5;
  11.     unsigned int type;
  12.     int shadowID;
  13.     float shadowNear;
  14.     float shadowFar;
  15.     float shadowResolution;
  16.     float shadowScale;
  17.     int shadowFilter;
  18.     float offset;
  19.     float4 data3;
  20. };
  21.  
  22. struct SpotLight
  23. {
  24.     float4 position;
  25.     float4 positionVS;
  26.     float4 color;
  27.     float4 spotDirection;
  28.     float4 spotDirectionVS;
  29.     float spotAngle;
  30.     float spotFalloff;
  31.     float spotLinearAtt;
  32.     float spotQuadraticAtt;
  33.     float cascadeShadowClip[8];
  34.     unsigned int type;
  35.     int shadowID;
  36.     float shadowNear;
  37.     float shadowFar;
  38.     float shadowResolution;
  39.     float shadowScale;
  40.     float pad[2];
  41.     float4 data3;
  42. };
  43.  
  44. struct PointLight
  45. {
  46.     float4 position;
  47.     float4 positionVS;
  48.     float4 color;
  49.     float pointLinearAtt;
  50.     float pointQuadraticAtt;
  51.     unsigned int cubeShadowID[6];
  52.     unsigned int unionPad[12];
  53.     unsigned int type;
  54.     int shadowID;
  55.     float shadowNear;
  56.     float shadowFar;
  57.     float shadowResolution;
  58.     float shadowScale;
  59.     float pad[2];
  60.     float4 data3;
  61. };
  62.  
  63. struct DirectionalLight
  64. {
  65.     float4 position;
  66.     float4 positionVS;
  67.     float4 color;
  68.     float4 dirDirection;
  69.     int numCascades;
  70.     float lambda;
  71.     unsigned int unionPad[2];
  72.     int cascadeShadowID[4];
  73.     float cascadeShadowClip[4];
  74.     float4 dirDirectionVS;
  75.     unsigned int type;
  76.     int shadowID;
  77.     float shadowNear;
  78.     float shadowFar;
  79.     float shadowResolution;
  80.     float shadowScale;
  81.     float pad[2];
  82.     float4 data3;
  83. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement