someone knows how to assign a gradient to a MeshBasicMaterials that in my case is a Sphere? At the moment I have an orange #ff8300 sphere that I would like to have a gradient from #ffff00 to #ff0000.
🙏
<mesh>
<sphereBufferGeometry args={[0.8, 30, 30]} attach="geometry" />
<meshBasicMaterial color={0xff8300} attach="material" />
</mesh>
three.jsyou would normally create a color gradient with a raw canvas, use it to create an instance of THREE.CanvasTexture and then apply it to themapproperty of your material.