May 28th, 2021 - Q&A: Are we going to be able to turn Lights upside down?

May 28th, 2021

Q&A: Are we going to be able to turn Lights upside down?

https://www.youtube.com/watch?v=dyqOMITwLsY&t=500

Suggested Wiki Reference Code
Topics
  1. Snutt

    And some of our buildings are animated and some parts of our building are static.

    So one question that I've been getting is regarding if we are going to implement so you can turn lights upside down and stuff like that.

    Because I believe there's a reason why that isn't working right now or something like that.

  2. Ben

    The reason is because I forgot to implement something.

  3. Snutt

    That's the fair reason.

  4. Ben

    So basically how our lights work, they trace down so they get the right length.

    Because the way how I envisioned lights to work is they would be context aware.

    So they wouldn't just try to go all the way through the world because that would cause a lot of draw calls because of the shadows.

    So the lights do a line trace with a maximum distance.

    They should take the maximum distance if they fail to find anything.

    There are some cases where

    don't and that's something i still have to patch up right so that's something

  5. Snutt

    the

  6. Ben

    same might come in the future then yeah okay and same with the glass um currently they block glass because it's a foundation piece but it should of course ignore glass but that's totally a future for now

  7. Snutt

    is that tricky because the you you need to like separate out the glass portion of the foundation portion and whatnot on those pieces or

  8. Ben

    Oh, if it's a glass, just trace through it, whatever.

  9. Snutt

    It's the player's choice.

    Who cares?

    Let's just trace through it.

    Nobody will know.

  10. Ben

    Awesome.