Jump to content

DayNight with a skybox?


blueapples
 Share

Recommended Posts

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"

Link to comment
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.

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.

 Share

×
×
  • Create New...