2
transcut http://glasier.hk/image/transcut.pngthree.js所透明的平面切割周邊物體的質感
每個面與本作:
geometry = new THREE.PlaneGeometry(w,h,1,1,1);
base = new THREE.MeshBasicMaterial({ color: pass.color, transparent: true, side: THREE.DoubleSide})
material = new THREE.MeshLambertMaterial({ map: THREE.ImageUtils.loadTexture(pass.img), transparent: true, opacity:1, side: THREE.DoubleSide });
shape = new THREE.Mesh(geometry, material);
我有什麼錯呢?
太好了,謝謝。正如Doob先生在「this」中所建議的那樣,我使用了'alphaTest:0.5'。上帝保佑他的棉襪。 –