mirror of
https://github.com/DeMuenu/MoonlightVRC.git
synced 2025-12-13 19:33:56 +00:00
Extended ShadowcasterUpdater and shaders to handle multiple shadowcaster planes by introducing indexed properties and logic for two shadowcaster sets. Updated property names and shader logic to support per-index shadowcaster textures, colors, and brightness, enabling more flexible shadow casting in scenes.
14 lines
571 B
HLSL
14 lines
571 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_ShadowMapIndex[MAX_LIGHTS];\
|
|
float _Udon_PlayerCount; /* set via SetFloat */ \
|
|
|
|
#endif |