mirror of
https://github.com/DeMuenu/MoonlightVRC.git
synced 2025-12-13 11:33:54 +00:00
Updated all relevant shader files and C# script to use Udon-prefixed light and player variables (e.g., _Udon_LightPositions, _Udon_LightColors, _Udon_PlayerCount) for consistency and to avoid naming conflicts. This change affects variable declarations, macro definitions, and all usages in BlendinShader, LitParticles, Water shaders, and included HLSL files.
13 lines
525 B
HLSL
13 lines
525 B
HLSL
#ifndef MoonlightGlobalVariables
|
|
#define MoonlightGlobalVariables \
|
|
\
|
|
float _InverseSqareMultiplier; \
|
|
float _LightCutoffDistance; \
|
|
\
|
|
float4 _Udon_LightPositions[MAX_LIGHTS]; /* xyz = position */ \
|
|
float4 _Udon_LightColors[MAX_LIGHTS]; /* xyz = position */ \
|
|
float4 _Udon_LightDirections[MAX_LIGHTS]; /* xyz = direction, w = cos(halfAngle) */ \
|
|
float _Udon_LightType[MAX_LIGHTS]; /* 0 = sphere, 1 = cone */ \
|
|
float _Udon_PlayerCount; /* set via SetFloat */ \
|
|
|
|
#endif |