provide a global scriped variable for TSShape::smMaxSkinBones

allows per project to either expand or educe the cap depending on needs
This commit is contained in:
AzaezelX 2026-01-17 13:17:02 -06:00
parent f2a5b06803
commit ae9ae1db44

View file

@ -75,6 +75,10 @@ MODULE_BEGIN( TSShapeInstance )
"@brief Enables mesh instancing on non-skin meshes that have less that this count of verts.\n"
"The default value is 2000. Higher values can degrade performance.\n"
"@ingroup Rendering\n" );
Con::addVariable("$MaxSkinBones", TypeS32, &TSShape::smMaxSkinBones,
"@brief Max number of bones allowed by a given shape for hardwar skinning. Default 70\n"
"@ingroup Rendering\n");
}
MODULE_END;