Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
* @inheritdoc
*/
public _loadMaterialAsync(
context: string,
material: IMaterial,
mesh: Mesh,
babylonDrawMode: number,
assign: (babylonMaterial: Material) => void,
): Nullable> {
// ジェネレータでマテリアルを生成する
return (new VRMMaterialGenerator(this.loader)).generate(context, material, mesh, babylonDrawMode, assign);
}
}
// ローダーに登録する
GLTFLoader.RegisterExtension(NAME, (loader) => new VRM(loader));