kurhlaa Posted November 18, 2018 Share Posted November 18, 2018 Hello, If I add lights to the scene with something like: this.lights.enable().setAmbientColor(0x555555); .. then enable lighting the needed objects with: object.setPipeline('Light2D'); Then later I wish to disable all scene lights (with being able to enable later again). I try with: this.lights.disable(); But this makes all light enabled objects invisible. Probably this is because pipeline is set to every object. The question of course is - how to just turn off lights globally, like in real world, so all images stay visible (just with default normal colors)? Link to comment Share on other sites More sharing options...
rich Posted November 18, 2018 Share Posted November 18, 2018 You need to set all of the objects using the Light2D pipeline back to the TextureTintPipeline. kurhlaa 1 Link to comment Share on other sites More sharing options...
Recommended Posts