I've been attempting to incorporate texture into my project.
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
However, I continue to encounter this error message.
[.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 am utilizing three.js for this task.