Change direction Loom

more logical to set positive delta to increase visibility
This commit is contained in:
Bruno Herbelin
2022-02-15 23:44:54 +01:00
parent a28e4be5a3
commit 297d271e63
3 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

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