Added object distributuon calculationg
This commit is contained in:
14
Runtime/Cloner/Fields/ModifierLayer/Clamp.cs
Normal file
14
Runtime/Cloner/Fields/ModifierLayer/Clamp.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Unity.Mathematics;
|
||||
|
||||
namespace Misaki.ArtTool
|
||||
{
|
||||
public class Clamp : FieldBase
|
||||
{
|
||||
public float2 minMax;
|
||||
|
||||
public override float Operate(float3 position, float weight)
|
||||
{
|
||||
return math.clamp(weight, minMax.x, minMax.y);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user