i'm trying to apply the texture from new THREE.Texture(canvas)
to the PointsMaterial, but it's not working as expected. The canvas appears on the top right corner, however, only white points are visible in the CubeGeometry.
var texture = new THREE.Texture( canvas );
texture.needsUpdate = 1;
Surprisingly, when I use the texture from
new THREE.TextureLoader().load( "snowflake5.png" )
, everything works fine.
To see a demonstration of this issue, visit: https://codepen.io/anon/pen/JNezgM
Can anyone point out where I may have gone wrong?