From 4885fb42bd42f5dfb7fdc198bd0cc42be7959aaf Mon Sep 17 00:00:00 2001 From: yum Date: Sat, 24 Jan 2026 15:03:30 -0800 Subject: Remove worldPos interpolator --- glitter.cginc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'glitter.cginc') diff --git a/glitter.cginc b/glitter.cginc index dc353df..637a324 100644 --- a/glitter.cginc +++ b/glitter.cginc @@ -16,6 +16,7 @@ struct GlitterParams { float center_randomization_range; float size_randomization_range; float existence_chance; + float seed; #if defined(_GLITTER_ANGLE_LIMIT) float angle_limit; float angle_limit_transition_width; @@ -43,8 +44,8 @@ float4 getGlitter(v2f i, f2f f, GlitterParams params, float3 normal) { float2 p = uv + glitter_offset_vectors[layer_i] * params.cell_size * 0.5; float3 cell_id = float3(floor(p / params.cell_size), layer_i); - float cell_rand = rand3(cell_id*.0001); - float cell_rand2 = rand3((cell_id+1)*.0001); + float cell_rand = rand3(cell_id*.0001+params.seed); + float cell_rand2 = rand3((cell_id+1)*.0001+params.seed); p = glsl_mod(p, params.cell_size); p -= params.cell_size * 0.5; // Apply center randomization -- cgit v1.2.3