- Home /
How to have two suns?
Hello human beings,
I want to have two suns in the sky in my game. How can I do that? Not many articles on it on the internet...
Thanks in advance, Ethan
That's a very broad question and can have many answers. Can you clarify what your intended results are? Do you just want two light sources that act as sunlight or do you wan the visual aspect of having two suns showing up in the sky somewhere, or something else entirely.
Answer by tanoshimi · Jul 10, 2017 at 06:08 PM
What do you need an article for? A sun is just a directional light. So add two, or three, or four, of them to your scene. Done.
But you may want to see the two suns! Break apart the skybox and see how to add another sun. There are a huge number of articles on skyboxes, but that's not to say they are simple!
On a procedural skybox you mean? The OP doesn't mention that, but it's simply a case of finding looping over the section of shader code that calculates the influence of each sun. Like I said, they're just directional lights.
How did you get it to show two suns? Using skybox? Just putting two Directional lights didn't work for me...
Answer by Cynikal · Jul 10, 2017 at 10:15 PM
Easiest solution I can think of is to make a sphere, add some emission and such to it.... Add a directional light component to it... and then duplicate it.
Your answer
Follow this Question
Related Questions
Simulated Sun Position 1 Answer
HDRI Sky - Visible sun using directional light 1 Answer
Transparent shader in background queue 2 Answers
Directional light not working. 0 Answers
Sun Does Not Appear in Skybox 0 Answers