Second question I’m asking today. But I’m working on a Light-Shadow-system like thief (but much dumber since I’m a beginner ^^; ) The question is, how do I know where a Light ends exactly? I want to have graduating noticablity depending on how far the player is away from the light (since lightsources get worn out with distance - at least if they’re soft). Right now I’m just using a sphere or cone (depending on the light source shape) to check if the player walked into the light. But my problem is that I always have to use trial and error to see how big the radius of the cone / sphere has to be to make sense .
So my question is, if there is any possiblity to do this by exact calculation? I would like to avoid c++ code (if its possible), because I don’t know anything about c++ and this project is on a deadline. >.<
Thank you in advance!