void ProjectiveTextureMethod::setRenderState(MethodVO* vo, IRenderable* renderable, IContext* context, Camera3D* camera) { Matrix3D projMatrix; projMatrix.copyFrom(m_projector->getViewProjection()); projMatrix.prepend(renderable->getRenderSceneTransform(camera)); projMatrix.copyRawDataTo(vo->m_vertexData->data(), vo->m_vertexConstantsIndex, true); }
void Matrix3DUtils::invert(const Matrix3D &m, Matrix3D &out) { out.copyFrom(m); out.invert(); }