I've been trying to add texture
var bumptexture = THREE.ImageUtils.loadTexture('grid.jpg');
var normaltexture = THREE.ImageUtils.loadTexture("normal.jpg");
var diffusetexture = THREE.ImageUtils.loadTexture("diffuse.jpg");
var material2 = new THREE.MeshPhongMaterial({
color: 0xaaaaaa,
ambient: 0xaaaaaa,
specular: 0x333333,
map: diffusetexture,
bumpMap: bumptexture,
bumpMapScale: 1,
normalMap:normaltexture,
normalScale: (1,1),
shininess: 10
But I keep on receiving this error.
[.CommandBufferContext]RENDER WARNING: there is no texture bound to the unit 1 test.html:1 [.CommandBufferContext]RENDER WARNING: there is no texture bound to the unit 0 test.html:1 [.CommandBufferContext]RENDER WARNING: there is no texture bound to the unit 1
I'm using three.js