mrdoob / three.js

JavaScript 3D Library.
https://threejs.org/
MIT License
102.72k stars 35.38k forks source link

AmbientLight No Longer Works #755

Closed jstin closed 13 years ago

jstin commented 13 years ago

Upgrading to r46 causes my ambient lights to be dark.

ambientLight = new THREE.AmbientLight( 0xbbbbbb );
scene.add( ambientLight );

Everything is dark now.

alteredq commented 13 years ago

Ambient lighting works, just it's different from how it was before.

Before Lambert material didn't have ambient color property (before it was like if it had 0xffffff ambient color).

Now Lambert is consistent with Phong and has ambient color (default to 0x050505, like Phong, so it's darker compared to before).

jstin commented 13 years ago

Thanks, that works.