mirror of
https://github.com/DeMuenu/MoonlightVRC.git
synced 2025-12-13 19:33:56 +00:00
Rename shader light variables to Udon-prefixed versions
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.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#ifndef InLoopSetup
|
||||
#define InLoopSetup(_LightPositions, LightCounter, count, i) \
|
||||
#define InLoopSetup(_Udon_LightPositions, LightCounter, count, i) \
|
||||
if (LightCounter >= count) break; \
|
||||
\
|
||||
float distanceFromLight = length(i.worldPos - _LightPositions[LightCounter].xyz); \
|
||||
float distanceFromLight = length(i.worldPos - _Udon_LightPositions[LightCounter].xyz); \
|
||||
if (distanceFromLight > _LightCutoffDistance) continue; \
|
||||
\
|
||||
float contrib = 0.0;
|
||||
@@ -10,8 +10,8 @@
|
||||
#endif
|
||||
|
||||
#ifndef OutLoopSetup
|
||||
#define OutLoopSetup(i, _PlayerCount) \
|
||||
int count = (int)_PlayerCount; \
|
||||
#define OutLoopSetup(i, _Udon_PlayerCount) \
|
||||
int count = (int)_Udon_PlayerCount; \
|
||||
\
|
||||
float4 dmax = float4(0,0,0,1); \
|
||||
float dIntensity = 0;
|
||||
|
||||
Reference in New Issue
Block a user