fix: extracted blend logic to evaluate_at

This commit is contained in:
Sara Gerretsen 2026-02-22 22:50:07 +01:00
parent ac139f01b6
commit c17b513b34
2 changed files with 10 additions and 9 deletions

View file

@ -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: