Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Light
- {
- float4 position;
- float4 positionVS;
- float4 color;
- float4 data0;
- float4 data1;
- float4 data2;
- float4 data4;
- float4 data5;
- unsigned int type;
- int shadowID;
- float shadowNear;
- float shadowFar;
- float shadowResolution;
- float shadowScale;
- int shadowFilter;
- float offset;
- float4 data3;
- };
- struct SpotLight
- {
- float4 position;
- float4 positionVS;
- float4 color;
- float4 spotDirection;
- float4 spotDirectionVS;
- float spotAngle;
- float spotFalloff;
- float spotLinearAtt;
- float spotQuadraticAtt;
- float cascadeShadowClip[8];
- unsigned int type;
- int shadowID;
- float shadowNear;
- float shadowFar;
- float shadowResolution;
- float shadowScale;
- float pad[2];
- float4 data3;
- };
- struct PointLight
- {
- float4 position;
- float4 positionVS;
- float4 color;
- float pointLinearAtt;
- float pointQuadraticAtt;
- unsigned int cubeShadowID[6];
- unsigned int unionPad[12];
- unsigned int type;
- int shadowID;
- float shadowNear;
- float shadowFar;
- float shadowResolution;
- float shadowScale;
- float pad[2];
- float4 data3;
- };
- struct DirectionalLight
- {
- float4 position;
- float4 positionVS;
- float4 color;
- float4 dirDirection;
- int numCascades;
- float lambda;
- unsigned int unionPad[2];
- int cascadeShadowID[4];
- float cascadeShadowClip[4];
- float4 dirDirectionVS;
- unsigned int type;
- int shadowID;
- float shadowNear;
- float shadowFar;
- float shadowResolution;
- float shadowScale;
- float pad[2];
- float4 data3;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement