added random seed
All checks were successful
CI / React UI Build (push) Successful in 11s
CI / Native Windows Build And Tests (push) Successful in 1m33s
CI / Windows Release Package (push) Successful in 2m11s

This commit is contained in:
2026-05-08 13:38:27 +10:00
parent 5eff189bbf
commit 7035cde8c8
10 changed files with 35 additions and 29 deletions

View File

@@ -24,12 +24,13 @@ float4 shadeVideo(ShaderContext context)
float2 resolution = max(context.outputResolution, float2(1.0, 1.0));
float2 fragCoord = context.uv * resolution;
float2 normalizedCoord = (fragCoord - 0.5 * resolution) / resolution.y / max(scale, 0.001);
float time = context.time * speed;
float seed = context.startupRandom;
float time = context.time * speed + seed * 53.0;
float timeCos = cos(0.1 * time);
float3 direction = normalize(float3(normalizedCoord, 1.0));
float3 origin = float3(0.0, 0.0, time);
float3 origin = float3(seed * 0.4 - 0.2, 0.2 - seed * 0.4, time);
float z = happyNoise(fragCoord);
float z = happyNoise(fragCoord + seed * resolution.yx);
float distanceToSurface = 0.0;
float4 accumulated = float4(0.0, 0.0, 0.0, 0.0);
float clampedSteps = clamp(raySteps, 1.0, 77.0);