Add shadow caster support to LitParticles shader

Introduced shadow caster texture, color, outside color, and minimum brightness parameters to the LitParticles shader. Moved related variable declarations to Variables.hlsl for reuse and removed redundant declarations from BlendinShader.shader. Updated LitParticles lighting calculation to apply shadow caster effects when appropriate.
This commit is contained in:
DeMuenu
2025-09-30 01:20:22 +02:00
parent 868e713336
commit 7a3065211e
3 changed files with 25 additions and 8 deletions

View File

@@ -15,12 +15,13 @@ Shader "DeMuenu/World/Hoppou/RevealStandart"
//Moonlight
_InverseSqareMultiplier ("Inverse Square Multiplier", Float) = 1
_LightCutoffDistance ("Light Cutoff Distance", Float) = 100
//Moonlight END
_shadowCasterTex ("Shadow Caster Texture", 2D) = "white" {}
_shadowCasterColor ("Shadow Caster Color", Color) = (1,1,1,1)
_OutSideColor ("Outside Color", Color) = (1,1,1,1)
_MinBrightnessShadow ("Min Brightness for Shadows", Range(0,1)) = 0
//Moonlight END
@@ -91,12 +92,6 @@ Shader "DeMuenu/World/Hoppou/RevealStandart"
MoonlightGlobalVariables
float4x4 _Udon_WorldToLocal;
sampler2D _shadowCasterTex;
float4 _shadowCasterColor;
float4 _OutSideColor;
float _MinBrightnessShadow;
v2f vert (appdata v)
{