var material = new THREE.MeshStandardMaterial( {
color: 0xffffff,
roughness: settings.roughness,
metalness: settings.metalness,
normalMap: normalMap,
//aoMap: aoMap,
//aoMapIntensity: 1,
//displacementMap: displacementMap,
//displacementScale: settings.displacementScale,
//displacementBias: - 0.428408, // from original model
envMap: envMap,
envMapIntensity: settings.envMapIntensity,
side: THREE.DoubleSide
} );
// model
var loader = new GLTFLoader().setPath( 'models/gltf/' );
loader.load( '1011TEST.glb', function ( gltf ) {
gltf.scene.traverse( function ( child ) {
if ( child.isMesh ) {
child.material = material;
console.log(material);
}
} );
scene.add( gltf.scene );
} );
if i dont add normalMap,it looks well.if i add normalMap,it turns black,why?