File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,12 @@ class GeometryCreatorApp final : public MonoWindowApplication, public applicatio
67
67
m_renderer = CSimpleDebugRenderer::create (m_assetMgr.get (),scRes->getRenderpass (),0 ,m_scene.get ());
68
68
if (!m_renderer)
69
69
return logFail (" Could not create Renderer!" );
70
+ m_renderer->m_instances .resize (1 );
71
+ m_renderer->m_instances [0 ].world = float32_t3x4 (
72
+ float32_t4 (1 ,0 ,0 ,0 ),
73
+ float32_t4 (0 ,1 ,0 ,0 ),
74
+ float32_t4 (0 ,0 ,1 ,0 )
75
+ );
70
76
71
77
// camera
72
78
{
@@ -147,6 +153,9 @@ class GeometryCreatorApp final : public MonoWindowApplication, public applicatio
147
153
memcpy (&viewProjMatrix,camera.getConcatenatedMatrix ().pointer (),sizeof (viewMatrix));
148
154
}
149
155
const auto viewParams = CSimpleDebugRenderer::SViewParams (viewMatrix,viewProjMatrix);
156
+
157
+ // tear down scene every frame
158
+ m_renderer->m_instances [0 ].packedGeo = m_renderer->getInitParams ().geoms .data ()+gcIndex;
150
159
m_renderer->render (cb,viewParams);
151
160
152
161
cb->endRenderPass ();
You can’t perform that action at this time.
0 commit comments