1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| let planeGeometry = new THREE.PlaneGeometry(1,1)
let planeMaterial = new THREE.MeshBasicMaterial({ color: 0xffffff, map: texture, transparent: true, aoMap: aoMap, specularMap:specularMap, }) let plane = new THREE.Mesh(planeGeometry, planeMaterial)
scene.add(plane) gui.add(planeMaterial, "aoMapIntensity").min(0).max(1).name("阴影") gui.add(texture, "colorSpace", { sRGB: THREE.SRGBColorSpace, Linear: THREE.LinearSRGBColorSpace }).onChange(() => { textureLoader.needUpdate = true }).name("色彩空间")
|