from user Ewyncat: adds invcameratrans, cameratoscrren, and screentocamera postfx and shader matrix interfaces.

also a bit of backend work to normalize those later once we've proof-of-concepted the calcs
This commit is contained in:
AzaezelX 2019-09-06 14:25:17 -05:00
parent 7c3bd49615
commit 022b87cac2
9 changed files with 53 additions and 1 deletions

View file

@ -93,6 +93,11 @@ const MatrixF& SceneRenderState::getProjectionMatrix() const
return getRenderPass()->getMatrixSet().getCameraToScreen();
}
const MatrixF& SceneRenderState::getInvProjectionMatrix() const
{
return getRenderPass()->getMatrixSet().getScreenToCamera();
}
//-----------------------------------------------------------------------------
void SceneRenderState::renderObjects( SceneObject** objects, U32 numObjects )