A few exponential slider updates

* Add exponent to RenderableTrail period and resolution
* Lower exponent of stereoscopic depth slider, to give better control
This commit is contained in:
Emma Broman
2021-07-07 14:28:24 +02:00
parent c35ff0e8f2
commit 85e7c6a146
2 changed files with 3 additions and 1 deletions

View File

@@ -158,10 +158,12 @@ RenderableTrailOrbit::RenderableTrailOrbit(const ghoul::Dictionary& dictionary)
using namespace std::chrono;
_period = p.period * duration_cast<seconds>(hours(24)).count();
_period.onChange([&] { _needsFullSweep = true; _indexBufferDirty = true; });
_period.setExponent(5.f);
addProperty(_period);
_resolution = p.resolution;
_resolution.onChange([&] { _needsFullSweep = true; _indexBufferDirty = true; });
_resolution.setExponent(3.5f);
addProperty(_resolution);
// We store the vertices with (excluding the wrapping) decending temporal order

View File

@@ -391,7 +391,7 @@ OrbitalNavigator::OrbitalNavigator()
addProperty(_useAdaptiveStereoscopicDepth);
addProperty(_staticViewScaleExponent);
_stereoscopicDepthOfFocusSurface.setExponent(10.f);
_stereoscopicDepthOfFocusSurface.setExponent(3.f);
addProperty(_stereoscopicDepthOfFocusSurface);
addProperty(_retargetInterpolationTime);