Jump to content

Recommended Posts

Posted

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.

Posted

Yeah I looked in there and there are basically no references to how to modify the color or distribution of stars, etc. There are a lot of equations but basically no explanation of what they do... Maybe you are looking at a different version?

Posted

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.

 

http://developer.amd.com/wordpress/media/2012/10/GDC_02_HoffmanPreetham.pdf

 

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"

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.

Guest
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...