MCPcopy Create free account
hub / github.com/carbonengine/trinity / UpdateVertexShaderCBMirror

Method UpdateVertexShaderCBMirror

trinity/Tr2PerObjectData.cpp:128–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126
127
128void Tr2PerObjectDataSkinned::UpdateVertexShaderCBMirror( void* destination, Tr2RenderContext& renderContext ) const
129{
130 uint8_t* vs = static_cast<uint8_t*>( destination );
131 memcpy( vs + ( TR2_MAX_BONES_PER_MESHAREA * 3 ) * 16, &m_worldMat.m[0][0], 4 * 16 );
132 memcpy( vs + ( TR2_MAX_BONES_PER_MESHAREA * 3 + 5 ) * 16, &m_mirrorMatrix.m[0][0], 4 * 16 );
133}
134
135void Tr2PerObjectDataSkinned::SetSkinningMatrices( unsigned int n, float* data )
136{

Callers 2

ApplyConstantBuffersMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected