What happened to THREE.ImageUtils?

前端 未结 2 1423
余生分开走
余生分开走 2021-01-28 08:32

Working on updating some old javascript three.js code on textures. Specifically the second line below.

var groundColor = new THREE.Color(0xd2ddef);
var groundT         


        
2条回答
  •  情书的邮戳
    2021-01-28 09:02

    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]

提交回复
热议问题