wireworld, lenia: fix time scale

This commit is contained in:
Crispy 2023-06-25 18:53:48 +02:00
parent 16ac2515e4
commit a17640b7cc
4 changed files with 7 additions and 8 deletions

View file

@ -5,7 +5,7 @@
_LastFrame ("Texture", 2D) = "white" {}
_GrowtCenter ("Growth fn center (mu)", Range(0, 1)) = 0.2
_GrowthWidth ("Growth fn width (sigma / std deviation)", Range(0, 1)) = 0.07
_Speed ("Speed factor", Range(0.001, 0.5)) = 0.1
_Speed ("Speed factor", Range(0.3, 5)) = 1
}
SubShader
{
@ -103,7 +103,7 @@
float old_state = value(i.uv, 0.0, 0.0) ;
float count = total / total_max;
const float step = _Speed / _Time.x;
const float step = _Speed * unity_DeltaTime.x;
float state = activation(count) * step + old_state;
state = clamp(state, 0, 1);

View file

@ -81,7 +81,7 @@ Material:
- _Radius: 13
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _Speed: 0.1
- _Speed: 2
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1