Search code examples
javascripthtmlcolorsthree.jsrgb

MeshBasicMaterial Three.js brightness


I am currently using a MeshBasicMaterial in threejs to be lights. There is a fake point light inside of each one. I have a variable called color. It is rgb(random value, random value, random value). I want the MeshBasicMaterial to be brighter, currently. Is there any way to do this? I am open to switching to another material if I need to.


Solution

  • Like stated by @PhilN:

    MeshBasicMaterial is not affected by lights.

    I would recommend to changing to MeshLambertMaterial or MeshPhongMaterial instead, which will both become brighter/darker depending on the values of your light source(s).