Files
2025-05-13 02:46:21 +03:00

60 lines
1.0 KiB
C

#ifndef constants_h__
#define constants_h__
#include "math/LifeMath.h"
struct PER_CAMERA_CONSTANTS
{
LifeMath::float4x4 mView;
LifeMath::float4x4 mProj;
LifeMath::float4x4 mInvVP;
LifeMath::float3 camPos;
float d0;
LifeMath::float3 camDir;
float d1;
LifeMath::float4 camNearFar;
LifeMath::float3 corner3;
float corner3_dummy;
LifeMath::float3 corner2;
float corner2_dummy;
LifeMath::float3 corner1;
float corner1_dummy;
LifeMath::float3 corner0;
float corner0_dummy;
};
struct POINT_LIGHT_DATA
{
LifeMath::float3 Position;
float Intensity;
LifeMath::float3 Color;
float Range;
};
struct DIR_LIGHT_DATA
{
LifeMath::float3 Direction;
float Intensity;
LifeMath::float3 Color;
float SpecularPow;
};
struct SPOT_LIGHT_DATA
{
LifeMath::float3 Direction;
float InnerAngle;
LifeMath::float3 Position;
float Intensity;
LifeMath::float3 Color;
float Range;
float OuterAngle;
float ZNear;
float dummy2;
float dummy3;
LifeMath::float4x4 lightMatrix;
LifeMath::float4x4 lightView;
LifeMath::float4x4 meshMatrix;
};
#endif // constants_h__