Jump to content

[Solved] Detecting when an entity is lit (or not lit)?


Ontogenesis
 Share

Recommended Posts

Hi all. So I'm new here, bought Leadwerks in the Steam sale.

 

I'm currently working on a small hobby project to get to know Leadwerks a bit better. It's a simple FPS with the gameplay heavily revolving around light and darkness (inspired by the Vashta Nerada).

 

I had a look, and was wondering if there is a way to detect whether an entity, e.g. player, is standing in light or shadows? I can think of a work around e.g. invisible boxes parented to light sources that act as triggers, but it would save a lot of time if there was a way of measuring from player itself. I had a look but found nothing. I should also mention I'm using the Indie version.

 

Any help would be appreciated. Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...