mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Change direction Loom
more logical to set positive delta to increase visibility
This commit is contained in:
@@ -280,7 +280,7 @@ void Loom::update(Source *s, float dt)
|
||||
progress_ += dt;
|
||||
|
||||
// move target by speed vector (in the direction of step_, amplitude of speed * time (in second))
|
||||
pos_ += step_ * ( speed_ * dt * 0.001f);
|
||||
pos_ -= step_ * ( speed_ * dt * 0.001f );
|
||||
|
||||
// apply alpha if valid in range [0 1]
|
||||
float alpha = SourceCore::alphaFromCordinates(pos_.x, pos_.y);
|
||||
|
||||
@@ -4400,7 +4400,7 @@ void InputMappingInterface::SliderParametersCallback(SourceCallback *callback)
|
||||
if (ImGui::SliderFloat("##CALLBACK_LOOM", &val, -1.f, 1.f, "%.2f", 2.f))
|
||||
edited->setValue(val);
|
||||
ImGui::SameLine(0, 6);
|
||||
ImGuiToolkit::Indication("Change alpha to make source more visible (<0) or more transparent (>0)", 19, 12);
|
||||
ImGuiToolkit::Indication("Change alpha to make source more visible (>0) or more transparent (<0)", 19, 12);
|
||||
}
|
||||
break;
|
||||
case SourceCallback::CALLBACK_GRAB:
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user