Questions tagged [sky]
The sky tag has no summary.
25 questions
0 votes
1 answer
169 views
How to get the direction to the sky a pixel is facing to draw a sky?
I am drawing an empty texture over a framebuffer with a fragment shader active to try and draw a sky, but I need the direction each pixel is facing in (for correct linear perspective) to draw the ...
1 vote
1 answer
448 views
Render 2D texture on the cube texture at given location
I would like to simulate a moving sun on the sky. What I have managed to do so far is calculating the exact location of the sun, that is the 3D direction vector from the camera's position in the world ...
3 votes
0 answers
425 views
Atmospheric scattering and fog
I've implemented a dynamic sky model (Preetham). I've got Rayleigh and Mie scattering working fine, but I'm not sure how to get the foggy effects in this Unity article Here is what I have so far: How ...
3 votes
1 answer
570 views
Skydome and Ambient Intensity (Unity)
I've made a custom skydome in my game. For all my lights I have set them to not affect the skydome. The only thing affecting the skydome is the ambient light. For my game I have ambient intensity at ...
4 votes
1 answer
811 views
Using sky for indirect lighting - should I remove the sun?
I'm attempting to achieve slightly more realistic ambient lighting in outdoor scenes using the sky cubemap. When rendering an object, I first calculate the direct lighting contribution using ...
5 votes
3 answers
1k views
How to skip the sky in lighting shaders?
I recently implemented a sky in my deferred rendered game. It is a procedurally calculated sphere with a texture applied to it. Unfortunately all lighting shaders (light sources, ambient occlusion) ...
18 votes
2 answers
13k views
What are the differences between a skybox and a skydome?
What are the differences/pros/cons between a skybox and a skydome?
5 votes
1 answer
7k views
How does Minecraft render its sunset and sky?
In Minecraft, the sunset looks really beautiful and I've always wanted to know how they do it. Do they use several skyboxes rendered over eachother? That is, one for the sky (which can turn dark and ...