Optional
options: MToonMaterialLoaderPluginOptionsPrivate
_addPrivate
_extendPrivate
_generateThe target mesh
Private
_getMToonPrivate
Readonly
_mLoaded materials will be stored in this set.
Will be transferred into gltf.userData.vrmMToonMaterials
in afterRoot.
Private
_parsePrivate
_removeDelete use of KHR_materials_unlit
from its materials
if the material is using MToon.
Since GLTFLoader have so many hardcoded procedure related to KHR_materials_unlit
we have to delete the extension before we start to parse the glTF.
Private
_setupThis will do two processes that is required to render MToon properly.
A target GLTF primitive
The material index of the primitive
Debug mode for the material. You can visualize several components for diagnosis using debug mode.
Readonly
parserThis value will be added to renderOrder
of every meshes who have MaterialsMToon.
The final renderOrder will be sum of this renderOrderOffset
and renderQueueOffsetNumber
for each materials.
0
by default.
There is a line of the shader called "comment out if you want to PBR absolutely" in VRM0.0 MToon.
When this is true, the material enables the line to make it compatible with the legacy rendering of VRM.
Usually not recommended to turn this on.
false
by default.
Static
EXTENSION_
Generate outline for the given mesh, if it needs.