mirror of
https://github.com/celisej567/cool-source-archive.git
synced 2026-09-09 20:09:18 +03:00
19 lines
408 B
C
19 lines
408 B
C
#ifndef LIGHTINFO_FXC_H
|
|
#define LIGHTINFO_FXC_H
|
|
|
|
// w components of color and dir indicate light type:
|
|
// 1x - directional
|
|
// 01 - spot
|
|
// 00 - point
|
|
struct LightInfo
|
|
{
|
|
float4 color; // {xyz} is color w is light type code (see comment below)
|
|
float4 dir; // {xyz} is dir w is light type code
|
|
float4 pos;
|
|
float4 spotParams;
|
|
float4 atten;
|
|
};
|
|
|
|
#define MAX_NUM_LIGHTS 4
|
|
|
|
#endif // LIGHTINFO_FXC_H
|