added random seed
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
"id": "backgroundMix",
|
||||
"label": "Background Mix",
|
||||
"type": "float",
|
||||
"default": 0.15,
|
||||
"default": 0.0,
|
||||
"min": 0.0,
|
||||
"max": 1.0,
|
||||
"step": 0.01
|
||||
|
||||
@@ -75,7 +75,7 @@ float4 shadeVideo(ShaderContext context)
|
||||
float3 rayOrigin = float3(0.0, 0.0, 2.7);
|
||||
float3 rayDirection = normalize(float3(centeredUv, -2.1));
|
||||
|
||||
float spin = context.time * spinSpeed;
|
||||
float spin = context.time * spinSpeed + context.startupRandom * 6.2831853;
|
||||
float yaw = spin;
|
||||
float pitch = spin * 0.61 + 0.35;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user