mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-03 04:20:30 +00:00
Hardware Skinning Support
- Supports GL, D3D9 & D3D11 - Extends vertex formats & shadergen to support blend indices and weights - Adds basic support for using 4x3 matrices for shader constants - Supports software fallback
This commit is contained in:
parent
507c239a87
commit
3496c549b5
72 changed files with 2533 additions and 1327 deletions
|
|
@ -101,6 +101,30 @@ Var * AppVertConnectorGLSL::getElement( RegisterType type,
|
|||
return newVar;
|
||||
}
|
||||
|
||||
case RT_BLENDINDICES:
|
||||
{
|
||||
Var *newVar = new Var;
|
||||
newVar->constNum = mCurBlendIndicesElem;
|
||||
mElementList.push_back(newVar);
|
||||
char out[32];
|
||||
dSprintf((char*)out, sizeof(out), "vBlendIndex%d", mCurBlendIndicesElem);
|
||||
mCurBlendIndicesElem += 1;
|
||||
newVar->setConnectName(out);
|
||||
return newVar;
|
||||
}
|
||||
|
||||
case RT_BLENDWEIGHT:
|
||||
{
|
||||
Var *newVar = new Var;
|
||||
newVar->constNum = mCurBlendWeightsElem;
|
||||
mElementList.push_back(newVar);
|
||||
char out[32];
|
||||
dSprintf((char*)out, sizeof(out), "vBlendWeight%d", mCurBlendWeightsElem);
|
||||
mCurBlendWeightsElem += 1;
|
||||
newVar->setConnectName(out);
|
||||
return newVar;
|
||||
}
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue