Add WaterParticle shader and minor water shader tweaks

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.
This commit is contained in:
DeMuenu
2025-09-26 20:11:49 +02:00
parent 0f049de062
commit dc939d0ef6
6 changed files with 88 additions and 8 deletions

View File

@@ -4,10 +4,9 @@
\
float distanceFromLight = length(i.worldPos - _LightPositions[LightCounter].xyz); \
if (distanceFromLight > _LightCutoffDistance) continue; \
\
float contrib = 0.0; \
\
float contrib = 0.0;
#endif
#ifndef OutLoopSetup
@@ -15,5 +14,7 @@
int count = (int)_PlayerCount; \
\
float4 dmax = float4(0,0,0,1); \
float dIntensity = 0; \
float dIntensity = 0;
#endif

View File

@@ -10,4 +10,5 @@
float _LightType[MAX_LIGHTS]; /* 0 = sphere, 1 = cone */ \
float _PlayerCount; /* set via SetFloat */ \
\
#endif

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: c46c91c88f0f9954b9d65378c73103a5
ShaderIncludeImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: