mirror of
https://github.com/DeMuenu/MoonlightVRC.git
synced 2025-12-12 19:13:56 +00:00
Introduced a new WaterParticle shader for rendering water particles with alpha blending. Made minor formatting and calculation adjustments in Water.shader and DefaultSetup.hlsl, and updated Variables.hlsl. Added corresponding .meta files for new shader assets.
14 lines
517 B
HLSL
14 lines
517 B
HLSL
#ifndef MoonlightGlobalVariables
|
|
#define MoonlightGlobalVariables \
|
|
\
|
|
float _InverseSqareMultiplier; \
|
|
float _LightCutoffDistance; \
|
|
\
|
|
float4 _LightPositions[MAX_LIGHTS]; /* xyz = position */ \
|
|
float4 _LightColors[MAX_LIGHTS]; /* xyz = position */ \
|
|
float4 _LightDirections[MAX_LIGHTS]; /* xyz = direction, w = cos(halfAngle) */ \
|
|
float _LightType[MAX_LIGHTS]; /* 0 = sphere, 1 = cone */ \
|
|
float _PlayerCount; /* set via SetFloat */ \
|
|
\
|
|
|
|
#endif |