three-csm icon indicating copy to clipboard operation
three-csm copied to clipboard

Configurable light color

Open UstymUkhman opened this issue 3 years ago • 0 comments

Hey! Awesome plugin, really <3 it. I've noticed that the white color for DirectionalLights is hardcoded right here, so I'd like to suggest to make it configurable from data params we're passing to the constructor for the CSM initialization.

As a workaround I'm currently using this hack:

this.csm = new CSM({ ... });

this.csm.lights.forEach(light =>
  light.color.set(0xffff00)
);

But I don't think that's ideal, what do you think about that?

UstymUkhman avatar Jun 29 '21 16:06 UstymUkhman