added random seed
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user