我目前正在试验一下three.js,我想使用一个发射性地图.我试过将纹理加载到phong材质的自发光属性中,但不幸的是它不能像那样工作.这是我的代码:
var params = {
emissive: THREE.ImageUtils.loadTexture( emissive ),
shininess: shininess,
map: THREE.ImageUtils.loadTexture( map ),
normalMap: THREE.ImageUtils.loadTexture( normalMap ),
normalScale: new THREE.Vector2(0,-1),
envMap: this.reflectionCube,
combine: THREE.MixOperation,
reflectivity: 0.05
};
var material = new THREE.MeshPhongMaterial(params);
任何人都能指出我正确的方向让发射地图工作吗?