| 42 | mCustomTex(NULL) |
| 43 | {} |
| 44 | void DecalInstance::getWorldMatrix( MatrixF *outMat, bool flip ) |
| 45 | { |
| 46 | outMat->setPosition( mPosition ); |
| 47 | |
| 48 | Point3F fvec; |
| 49 | mCross( mNormal, mTangent, &fvec ); |
| 50 | |
| 51 | outMat->setColumn( 0, mTangent ); |
| 52 | outMat->setColumn( 1, fvec ); |
| 53 | outMat->setColumn( 2, mNormal ); |
| 54 | } |
| 55 | |
| 56 | F32 DecalInstance::calcPixelSize( U32 viewportHeight, const Point3F &cameraPos, F32 worldToScreenScaleY ) const |
| 57 | { |
no test coverage detected