ImGui::TextWrapped("By default, a transformation or mesh update will trigger a pathtracer sample count reset. If you want to limit this to explicit settings changes and camera movements, uncheck the following option.");
boolcollector_active=m_collector->isActive();
ImGui::Checkbox("Reset on scene update",&collector_active);
ImGui::ProgressBar(m_raytracer->currentSamples()/float(m_raytracer->maxSamples()),ImVec2(-1,0),("Current: "+std::to_string(m_raytracer->currentSamples())+" of "+std::to_string(m_raytracer->maxSamples())).c_str());
ImGui::Spacing();
intmax_samples=m_raytracer->maxSamples();
ImGui::DragInt("Maximum",&max_samples,1,1,50000);
if(max_samples!=m_raytracer->maxSamples())
m_raytracer->setMaxSamples(max_samples);
intspfr=m_raytracer->samplesPerFrame();
ImGui::DragInt("per frame",&spfr,1,1,10);
if(spfr!=m_raytracer->samplesPerFrame())
m_raytracer->setSamplesPerFrame(spfr);
ImGui::PopID();
ImGui::Spacing();
ImGui::Title("Bounces");
ImGui::PushID("id_bounces");
ImGui::TextWrapped("The global bounce limit clamps down all effect-dependant bounce limits to a unified maximum value.");
ImGui::TextWrapped("The direct clamp setting will lead to the primary ray result color being clamped down to a set maximum. That means each color component will be clamped. The same applies to the \"clamp indirect\" setting for non-primary bounces.");
ImGui::TextWrapped("The following threshold values will determine as of which accumulated PDF value the Line Space should be used instead of the BVH.");
{
floatacc=m_raytracer->getAccuracyThreshold();
ImGui::DragFloat("Direct",&acc,0.001f,0.0f,1.f);
if(acc!=m_raytracer->getAccuracyThreshold())
m_raytracer->setAccuracyThreshold(acc);
floatshd=m_raytracer->getShadowThreshold();
ImGui::DragFloat("Shadow",&shd,0.001f,0.0f,1.f);
if(shd!=m_raytracer->getShadowThreshold())
m_raytracer->setShadowThreshold(shd);
}
ImGui::Title("Bounce Thresholds");
ImGui::TextWrapped("The following threshold values will determine as of which bounce the Line Space should be used instead of the BVH. This can vary for every kind of effect.");