The result of the error alogn with the reflection being quadruplicated across the parallax node´s surface is something I´ve been unable to solve so far, if anyone has come across type of error this I´d really appreciate any tips.
Code: Select all
// HLSL requires different world view processing
mWorld = m_pDriver->getTransform(ETS_WORLD);
services->setVertexShaderConstant("mWorld", mWorld.pointer(), 16);
mView = m_pDriver->getTransform(ETS_VIEW);
services->setVertexShaderConstant("mView", mView.pointer(), 16);
mProjection = m_pDriver->getTransform(ETS_PROJECTION);
mWorldViewProj = mProjection * mView;
mWorldViewProj *= mWorld;
services->setVertexShaderConstant("mWorldViewProj", mWorldViewProj.pointer(), 16);
mWorld.getTransposed( mWorldTranspose ); // Set Inverse-Transposed world amtrix
bool bRes = mWorldTranspose.getInverse( mWorldInverseTranspose );
static bool bDisable = false;
ASSERT( bRes || bDisable );