Skip to content

Commit

Permalink
Merge branch 'cmj'
Browse files Browse the repository at this point in the history
# Conflicts:
#	App/Scene/scene_tracker.cpp
  • Loading branch information
yozhijk committed Jan 30, 2017
2 parents 62e7d63 + 4817372 commit b22632c
Show file tree
Hide file tree
Showing 55 changed files with 10,971 additions and 3,064 deletions.
11 changes: 7 additions & 4 deletions App/AO/aorenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ THE SOFTWARE.
********************************************************************/
#include "AO/aorenderer.h"
#include "CLW/clwoutput.h"
#include "Scene/scene.h"
#include "Scene/scene1.h"

#include <numeric>
#include <chrono>
Expand Down Expand Up @@ -149,15 +149,18 @@ namespace Baikal
m_resetsampler = true;
}

void AoRenderer::Preprocess(Scene const& scene)
void AoRenderer::Preprocess(Scene1 const& scene)
{
}

// Render the scene into the output
void AoRenderer::Render(Scene const& scene)
void AoRenderer::Render(Scene1 const& scene)
{
auto api = m_scene_tracker.GetIntersectionApi();
auto& clwscene = m_scene_tracker.CompileScene(scene);

Collector mat_collector;
Collector tex_collector;
auto& clwscene = m_scene_tracker.CompileScene(scene, mat_collector, tex_collector);

// Check output
assert(m_output);
Expand Down
4 changes: 2 additions & 2 deletions App/AO/aorenderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ namespace Baikal
// Clear output
void Clear(RadeonRays::float3 const& val, Output& output) const override;
// Do necessary precalculation and initialization
void Preprocess(Scene const& scene) override;
void Preprocess(Scene1 const& scene) override;
// Render the scene into the output
void Render(Scene const& scene) override;
void Render(Scene1 const& scene) override;
// Set output
void SetOutput(Output* output) override;
// Interop function
Expand Down
Loading

0 comments on commit b22632c

Please sign in to comment.