Fix old applications with new framework.
This commit is contained in:
parent
fe92493afd
commit
262c9f3635
4 changed files with 54 additions and 56 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#pragma once
|
||||
#include "application.h"
|
||||
#include "helper.hpp"
|
||||
#include "imgui.h"
|
||||
#include "math/vec3fa.h"
|
||||
|
|
@ -10,11 +11,11 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
Vec3fa renderPixel(float x, float y, const ISPCCamera& camera, RayStats& stats, RandomSampler& sampler) override;
|
||||
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);
|
||||
Vec3fa renderPixel(float x, float y, const ISPCCamera& camera, RayStats& stats, RandomSamplerWrapper& sampler) override;
|
||||
Vec3fa renderPixelOrig(float x, float y, const ISPCCamera& camera, RayStats& stats, RandomSamplerWrapper& sampler);
|
||||
Vec3fa renderPixelHomogeneous(float x, float y, const ISPCCamera& camera, RayStats& stats, RandomSamplerWrapper& sampler);
|
||||
Vec3fa renderPixelHeterogeneous(float x, float y, const ISPCCamera& camera, RayStats& stats, RandomSamplerWrapper& sampler);
|
||||
Vec3fa renderPixelHeterogeneousNEE(float x, float y, const ISPCCamera& camera, RayStats& stats, RandomSamplerWrapper& sampler);
|
||||
|
||||
void drawGUI() override {
|
||||
ImGui::Checkbox("Bounding Box", &boundingBox);
|
||||
|
|
@ -55,10 +56,7 @@ private:
|
|||
}
|
||||
|
||||
void clear() {
|
||||
data.accu_count = 0;;
|
||||
for (size_t i = 0; i < data.accu_width * data.accu_height; i++) {
|
||||
data.accu[i] = Vec3fx(0.0);
|
||||
}
|
||||
Application::resetRender();
|
||||
}
|
||||
|
||||
void initScene() override;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue