Why irrlicht post message:
HLSL Variable to set not found: 'weightABC'. Available variables are:
'worldViewProj' Registers:[begin:0, count:4]
My shader:
float4x4 worldViewProj : WorldViewProjection;
float4 weightABC : weightABC;
Code in OnSetConstant:
_services->setVertexShaderConstant("weightABC", reinterpret_cast<f32 *>(&m_MapWeights), 3);
Well, the warning just said "the name is not existing in the code". Since both programs are in one file it's not that obvious, but it's apparently true - these are two completely separate programs.