mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
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:
parent
7c3bd49615
commit
022b87cac2
9 changed files with 53 additions and 1 deletions
|
|
@ -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 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue