MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / getWorldMatrix

Method getWorldMatrix

Engine/source/T3D/decal/decalInstance.cpp:44–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 mCustomTex(NULL)
43{}
44void 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
56F32 DecalInstance::calcPixelSize( U32 viewportHeight, const Point3F &cameraPos, F32 worldToScreenScaleY ) const
57{

Callers 15

fromGFXWithViewportMethod · 0.45
renderSceneMethod · 0.45
renderMethod · 0.45
renderMethod · 0.45
renderMethod · 0.45
renderMethod · 0.45
_renderBillboardMethod · 0.45
renderObjectMethod · 0.45
innerRenderMethod · 0.45
renderMethod · 0.45

Calls 3

setColumnMethod · 0.80
mCrossFunction · 0.50
setPositionMethod · 0.45

Tested by

no test coverage detected