What Happened To Three.imageutils?
Working on updating some old javascript three.js code on textures. Specifically the second line below. var groundColor = new THREE.Color(0xd2ddef); var groundTexture = new THREE.
Solution 1:
generateDataTexture
was removed from three.js core in r73. However here is the commit where it was removed where you can find the simple generateDataTexture
function. You could just copy and paste it into your code and call it as needed. [r88]
Solution 2:
Thanks everyone, I was able to replace ImageUtils.generateDataTexture
with THREE.DataTexture
, using the color as the data.
https://threejs.org/docs/#api/textures/DataTexture
Post a Comment for "What Happened To Three.imageutils?"