wireworld, lenia: fix time scale
This commit is contained in:
parent
16ac2515e4
commit
a17640b7cc
4 changed files with 7 additions and 8 deletions
|
@ -847,7 +847,7 @@ GameObject:
|
|||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
m_IsActive: 0
|
||||
--- !u!65 &1377711729
|
||||
BoxCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -1550,7 +1550,7 @@ Transform:
|
|||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2044521647}
|
||||
m_LocalRotation: {x: 0, y: 1, z: 0, w: 0}
|
||||
m_LocalPosition: {x: -2.402, y: 0.506, z: 0.292}
|
||||
m_LocalPosition: {x: -2.402, y: 0.506, z: 0.196}
|
||||
m_LocalScale: {x: 0.125, y: 0.125, z: 0.125}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
|
@ -1579,7 +1579,7 @@ GameObject:
|
|||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &2129299479
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@ Material:
|
|||
- _Radius: 13
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _Speed: 0.1
|
||||
- _Speed: 2
|
||||
- _SrcBlend: 1
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 1
|
||||
|
|
|
@ -90,8 +90,7 @@
|
|||
if (t > 0.9) {
|
||||
return float4(0, 0, 0, 1);
|
||||
}
|
||||
const float UPS = 4.0;
|
||||
t = t + UPS / _Time.y ;
|
||||
t += unity_DeltaTime.x * 4;
|
||||
return float4(t, t, t, 1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue