What happened to THREE.ImageUtils?

前端 未结 2 1405
余生分开走
余生分开走 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 08:55

    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

提交回复
热议问题