Skip to content

Commit b22632c

Browse files
committed
Merge branch 'cmj'
# Conflicts: # App/Scene/scene_tracker.cpp
2 parents 62e7d63 + 4817372 commit b22632c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+10971
-3064
lines changed

App/AO/aorenderer.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ THE SOFTWARE.
2121
********************************************************************/
2222
#include "AO/aorenderer.h"
2323
#include "CLW/clwoutput.h"
24-
#include "Scene/scene.h"
24+
#include "Scene/scene1.h"
2525

2626
#include <numeric>
2727
#include <chrono>
@@ -149,15 +149,18 @@ namespace Baikal
149149
m_resetsampler = true;
150150
}
151151

152-
void AoRenderer::Preprocess(Scene const& scene)
152+
void AoRenderer::Preprocess(Scene1 const& scene)
153153
{
154154
}
155155

156156
// Render the scene into the output
157-
void AoRenderer::Render(Scene const& scene)
157+
void AoRenderer::Render(Scene1 const& scene)
158158
{
159159
auto api = m_scene_tracker.GetIntersectionApi();
160-
auto& clwscene = m_scene_tracker.CompileScene(scene);
160+
161+
Collector mat_collector;
162+
Collector tex_collector;
163+
auto& clwscene = m_scene_tracker.CompileScene(scene, mat_collector, tex_collector);
161164

162165
// Check output
163166
assert(m_output);

App/AO/aorenderer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ namespace Baikal
5050
// Clear output
5151
void Clear(RadeonRays::float3 const& val, Output& output) const override;
5252
// Do necessary precalculation and initialization
53-
void Preprocess(Scene const& scene) override;
53+
void Preprocess(Scene1 const& scene) override;
5454
// Render the scene into the output
55-
void Render(Scene const& scene) override;
55+
void Render(Scene1 const& scene) override;
5656
// Set output
5757
void SetOutput(Output* output) override;
5858
// Interop function

0 commit comments

Comments
 (0)