Add NEE for heterogenous media.
This commit is contained in:
parent
fa42ce7dca
commit
d26a2309c7
2 changed files with 168 additions and 2 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue