Files
cool-source-archive/materialsystem/stdshadersdx11/lightinfo_fxc.h
Totterynine 2773eae4d7 shaderapidx11
use -dxlevel 110 to use it
2021-09-22 18:56:56 +05:00

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