Expose various engine features to scripting

This commit is contained in:
Wojtek Figat
2023-01-31 16:01:56 +01:00
parent a0c6add732
commit b071cdb843
6 changed files with 17 additions and 27 deletions

View File

@@ -84,6 +84,14 @@ void RenderView::PrepareCache(const RenderContext& renderContext, float width, f
MainScreenSize = mainView->ScreenSize;
}
void RenderView::SetUp(const Matrix& viewProjection)
{
// Copy data
Matrix::Invert(viewProjection, IVP);
Frustum.SetMatrix(viewProjection);
CullingFrustum = Frustum;
}
void RenderView::SetUp(const Matrix& view, const Matrix& projection)
{
// Copy data