Add NEE for heterogenous media.

This commit is contained in:
hal8174 2024-06-06 15:04:46 +02:00
parent fa42ce7dca
commit d26a2309c7
2 changed files with 168 additions and 2 deletions

View file

@ -14,6 +14,7 @@ private:
Vec3fa renderPixelOrig(float x, float y, const ISPCCamera& camera, RayStats& stats, RandomSampler& sampler);
Vec3fa renderPixelHomogeneous(float x, float y, const ISPCCamera& camera, RayStats& stats, RandomSampler& sampler);
Vec3fa renderPixelHeterogeneous(float x, float y, const ISPCCamera& camera, RayStats& stats, RandomSampler& sampler);
Vec3fa renderPixelHeterogeneousNEE(float x, float y, const ISPCCamera& camera, RayStats& stats, RandomSampler& sampler);
void drawGUI() override {
ImGui::Checkbox("Bounding Box", &boundingBox);
@ -24,8 +25,8 @@ private:
ray_depth = 1;
}
const char* items[] = {"Original", "Homogeneous", "Heterogeneous"};
if (ImGui::Combo("Version", &selected, items, 3))
const char* items[] = {"Original", "Homogeneous", "Heterogeneous", "HeterogeneousNEE"};
if (ImGui::Combo("Version", &selected, items, 4))
clear();
if (ImGui::SliderFloat("density", &density, 0.0, 1.0))