Merge pull request #1655 from Azaezel/alpha41/exposedBone
Some checks failed
Linux Build / ${{matrix.config.name}} (map[build_type:Release cc:gcc cxx:g++ generator:Ninja name:Ubuntu Latest GCC]) (push) Has been cancelled
MacOSX Build / ${{matrix.config.name}} (map[build_type:Release cc:clang cxx:clang++ generator:Ninja name:MacOSX Latest Clang]) (push) Has been cancelled
Windows Build / ${{matrix.config.name}} (map[build_type:Release cc:cl cxx:cl environment_script:C:/Program Files (x86)/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat generator:Visual Studio 17 2022 name:Windows Latest MSVC]) (push) Has been cancelled

provide a global scriped variable for TSShape::smMaxSkinBones
This commit is contained in:
Areloch 2026-01-21 19:35:14 -06:00 committed by GitHub
commit 5db8c75083
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;