Jump to content

How to get the amount of visible light


MrCafeae

Recommended Posts

I am attempting to write a script that does different things based on the amount of visible light. If it's daylight it does one thing, if it's night another, if player is inside and light is bright it does a third thing and if the light is dim but not dark it does a fourth.

 

 

So, is it possible to get the amount of visible (ambient?) light in a scene?

 

 

I'd appreciate any pointers (or links) in the correct direction on this.

 

Thanks in advance.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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