Add terrain rendering support for Global Surface Atlas

This commit is contained in:
Wojciech Figat
2022-04-29 14:05:03 +02:00
parent 1a711ea14f
commit 5465652466
10 changed files with 80 additions and 44 deletions

View File

@@ -247,7 +247,7 @@ void StaticModel::Draw(RenderContext& renderContext)
}
if (renderContext.View.Pass == DrawPass::GlobalSurfaceAtlas)
{
GlobalSurfaceAtlasPass::Instance()->RasterizeActor(this, _world, Model->LODs.Last().GetBox());
GlobalSurfaceAtlasPass::Instance()->RasterizeActor(this, this, _sphere, _world, Model->LODs.Last().GetBox());
return;
}
GEOMETRY_DRAW_STATE_EVENT_BEGIN(_drawState, _world);