mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2025-01-14 08:16:34 +01:00
20 lines
616 B
GLSL
20 lines
616 B
GLSL
#define MATRIX_VIEW 0
|
|
#define MATRIX_PROJECTION 1
|
|
#define MATRIX_WORLD 2
|
|
#define MATRIX_WORLD_VIEW 3
|
|
#define MATRIX_WORLD_VIEW_PROJECTION 4
|
|
#define MATRICES_MAX 5
|
|
|
|
float4x4 gm_Matrices[MATRICES_MAX] : register(c0);
|
|
|
|
bool gm_LightingEnabled;
|
|
bool gm_VS_FogEnabled;
|
|
float gm_FogStart;
|
|
float gm_RcpFogRange;
|
|
|
|
#define MAX_VS_LIGHTS 8
|
|
float4 gm_AmbientColour; // rgb=colour, a=1
|
|
float3 gm_Lights_Direction[MAX_VS_LIGHTS]; // normalised direction
|
|
float4 gm_Lights_PosRange[MAX_VS_LIGHTS]; // X,Y,Z position, W range
|
|
float4 gm_Lights_Colour[MAX_VS_LIGHTS]; // rgb=colour, a=1
|
|
|