创建贴图
var texture = THREE.ImageUtils.loadTexture('../img/chess.png', {}, function() {
renderer.render(scene, camera);
});
设置贴图的矩阵重复方式
texture.wrapS = texture.wrapT = THREE.RepeatWrapping;
设置行列的重复次数
texture.repeat.set(4, 4);
创建贴图
var texture = THREE.ImageUtils.loadTexture('../img/chess.png', {}, function() {
renderer.render(scene, camera);
});
texture.wrapS = texture.wrapT = THREE.RepeatWrapping;
texture.repeat.set(4, 4);