I am currently working on generating a texture using Three.js.
The texture_f1 source I am using is a .png file, which allows the background to show through.
The issue arises when attempting to set the background color using color: 0xffffff
in conjunction with the map: property.
If I only set color: 0xffffff
, it displays as white. However, when I use it with map: - like this
var material_f1 = new THREE.MeshBasicMaterial({ map: texture_f1, color: 0xffffff});
- the .png's black background shows through.