`VERTEX SHADER ERROR: 0:222: 'world' : redefinition` errors appeared in my own shader MToonMaterial

I think you want to rename the files:

  • ubo-declaration => mtoonUboDeclaration
  • vertex-declaration => mtoonVertexDeclaration
  • fragment-declaration => mtoonFragmentDeclaration

When using #include<__decl__mtoonVertex>, the system is removing __decl__ and is replacing Vertex by UboDeclaration if the engine supports Ubo or by VertexDeclaration if not. Same kind of transformations for #include<__decl__mtoonFragment>.