opengl es - Threejs not appying the texture to cube -
i struggling texture..
see http://jsfiddle.net/henros/e6zs9mcj/3/
can tell me why color cube not added..
see line 105 - 109
var geometry2 = new three.boxgeometry(50,50,50); var material2 = new three.meshbasicmaterial({color: 0x000000}); var cube2 = new three.mesh(geometry2, material2); cube2.position.set(-300,0,25) scene.add(cube2);
the code defines fog seems interact geometry. disabling fog or setting i-don't-care-about-fog flag resolves issue.
var material2 = new three.meshbasicmaterial({color: 0x000000, fog: false});
check scene setup.
Comments
Post a Comment