fix: extracted blend logic to evaluate_at
This commit is contained in:
parent
ac139f01b6
commit
c17b513b34
2 changed files with 10 additions and 9 deletions
|
|
@ -14,13 +14,13 @@ public:
|
|||
GDENUM(BlendMode, Add, Subtract, Override);
|
||||
|
||||
protected:
|
||||
float blend(float under, float over, float weight);
|
||||
float blend(float under, float over);
|
||||
|
||||
public:
|
||||
virtual float evaluate_at(Vector2 world_coordinate, float before);
|
||||
|
||||
private:
|
||||
float blend_distance{ 1.0 };
|
||||
float blend_distance{ 10.0 };
|
||||
BlendMode blend_mode{ Add };
|
||||
|
||||
public:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue