| Attention | Topic was automatically imported from the old Question2Answer platform. | |
| Asked By | JulioYagami |
I want to know if the player (Camera) is watching to the sun directly.
| Attention | Topic was automatically imported from the old Question2Answer platform. | |
| Asked By | JulioYagami |
I want to know if the player (Camera) is watching to the sun directly.
| Reply From: | reimgrab |
You need at least the forward vector of the camera and a position and dimension of your sun.
Then you could model the sun (mathematically) as a sphere and do a ray-sphere intersection test.