-----------------------------------------------------------------------------
| 387 | } |
| 388 | //----------------------------------------------------------------------------- |
| 389 | Affine3 AutoParamDataSource::getViewMatrix(const Camera* cam) const |
| 390 | { |
| 391 | Affine3 view; |
| 392 | if (mCurrentRenderable && mCurrentRenderable->getUseIdentityView()) |
| 393 | view = Affine3::IDENTITY; |
| 394 | else |
| 395 | { |
| 396 | view = cam->getViewMatrix(true); |
| 397 | if (mCameraRelativeRendering) |
| 398 | { |
| 399 | view.setTrans(Vector3::ZERO); |
| 400 | } |
| 401 | } |
| 402 | return view; |
| 403 | } |
| 404 | const Affine3& AutoParamDataSource::getViewMatrix(void) const |
| 405 | { |
| 406 | if (mViewMatrixDirty) |
no test coverage detected