I am currently experimenting a bit with three. js and I would like to use an emission card. I tried to just load the texture into the emission property of the phong material, but unfortunately this does not work. Here is my code:
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);
Can someone point me in the right direction to get an emission card?
source
share