Jump to content

Disabling lights makes objects invisible


kurhlaa
 Share

Recommended Posts

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...