Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

DayNight with a skybox?

Recommended Posts

From my understanding, it works off of math calculations. Not by having an image rotate.


To change the color of the sky, you'd have to change the math behind it.


Look at daynight.shader.


Shadmar was very kind to comment it nicely.

Link to post
Share on other sites

To get the color of the sky, they calculate what an atmosphere does to light of the sun color.


See totalMie function in the shader.


I believe this is the paper Shadmar built this shader upon.




There's a comment on line 485 in the shader relating to star position.


"//stars" Although the original source is no longer found at the link "http://glsl.heroku.com/e#18186.0"

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...