mrdoob/three.js — Issue #1241: Lighting and Texture
Author: gnitsuk
Created: 2012-02-03 15:16:39+00:00
State: open

Hi, can anyone point our what I'm missing here please: http://gnitsuk.leadhoster.com/ThreeTest/Test3.html

You see two cubes but only one has a texture applied - it is the one using the MeshBasicMaterial and so is unaffected by the lighting.

But the other cube uses MeshLambertMaterial and so IS affected by the lighting as one can see, BUT where is it's texture?

The source code can be viewed from the browser and you will see the material decalred as:

var material = new THREE.MeshLambertMaterial( { color: 0xf0c00a, map:texture } );

What have I done wrongly?

Thanks for any help,
Mitch.