Currently in the process of updating outdated JavaScript code using three.js for textures. Specifically looking to improve the second line of code below.
var groundColor = new THREE.Color(0xd2ddef);
var groundTexture = new THREE.ImageUtils().generateDataTexture(1, 1, groundColor); // this line
var groundMaterial = new THREE.MeshPhongMaterial({ color: 0xffffff, specular: 0x111111, map: groundTexture });
var groundTexture = new THREE.TextureLoader().load('img/ground.jpg', undefined, function() { groundMaterial.map = groundTexture });
groundTexture.wrapS = groundTexture.wrapT = THREE.RepeatWrapping;
groundTexture.repeat.set(25, 25);
groundTexture.anisotropy = 16;
What is the new method or constructor that three.js has introduced to replace THREE.ImageUtils().generateDataTexture?