Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
Square light sources
Print
Pages: [
1
]
Author
Topic: Square light sources (Read 1641 times)
0 Members and 1 Guest are viewing this topic.
sidewinder
Newbie
Posts: 16
Square light sources
«
on:
January 23, 2021, 09:53:16 pm »
Hi,
I was wondering if anyone had done light with shadows that does not originate from a single point (and become circles)
If you know of any examples I'd like to see them. Also if anyone have some ideas of how the equivalent ray-casting would work?
Logged
eXpl0it3r
SFML Team
Hero Member
Posts: 11030
Re: Square light sources
«
Reply #1 on:
January 30, 2021, 11:55:43 am »
I don't quite understand the question. If it doesn't originate from a point, what does it originate from then and how should it be spreading?
If it should be a plane (like an LED panel), then you could also just use multiple points next to each other as simplification. Otherwise you'll just have to use some different math, but unfortunately I wouldn't know more.
Logged
Official FAQ:
https://www.sfml-dev.org/faq.php
Official Discord Server:
https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog:
https://duerrenberger.dev/blog/
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
Square light sources