shader adjustment
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 15:12:48 +10:00
parent bc536bd751
commit 6ea70d9497
2 changed files with 5 additions and 4 deletions

View File

@@ -30,7 +30,8 @@ float4 shadeVideo(ShaderContext context)
float3 direction = normalize(float3(normalizedCoord, 1.0));
float3 origin = float3(seed * 0.4 - 0.2, 0.2 - seed * 0.4, time);
float z = happyNoise(fragCoord + seed * resolution.yx);
float edgeAmount = saturate(length(normalizedCoord) * 0.55);
float z = happyNoise(fragCoord + seed * resolution.yx) * lerp(0.22, 0.08, edgeAmount);
float distanceToSurface = 0.0;
float4 accumulated = float4(0.0, 0.0, 0.0, 0.0);
float clampedSteps = clamp(raySteps, 1.0, 77.0);
@@ -50,7 +51,7 @@ float4 shadeVideo(ShaderContext context)
float colorSeed = 0.5 * originalPosition.z + length(position - originalPosition);
float4 palette = 1.0 + sin(colorSeed + float4(0.0, 4.0, 3.0, 6.0));
palette /= 0.5 + 2.0 * dot(originalPosition.xy, originalPosition.xy);
palette /= 0.55 + 1.55 * dot(originalPosition.xy, originalPosition.xy);
position = abs(frac(position) - 0.5);
distanceToSurface = abs(min(length(position.xy) - 0.125, min(position.x, position.y) + 0.001)) + 0.001;