Game Engine 13: Simple Atmosphere @s0lly
Game Engine 13: Simple Atmosphere  @s0lly
Uploaded August 2020 | Updated September 2026, 12 minutes ago
This series of videos will demonstrate my progress in making a Game Engine in OpenGL.



A commenter (jasiumr) asked to add in an atmosphere. So here's a very simple first try at doing one! I'm actually quite amped at being able to get this implemented in a relatively short space of time, and even though it clearly would need a lot more work, the simple raytracing approach I've used here makes for a rather nice look.


In essence, I shoot a ray (for each relevant pixel) through an invisible sphere and sample 10 points on it to gather "fog" information, which is used to enhance the pixel in question to generate the gradual shading effect.



As before, this engine does not use any libraries; I'm trying to learn everything by hand here (perhaps a slightly ridiculous endeavour).



Learning Sources:

- Real-Time Rendering, 4th Edition
- learnopengl.com
- OpenGL Programming Guide (the "Red Book"), 9th Edition
- khronos.org/registry/OpenGL-Refpages/gl4

- Game Physics Engine Development, 2nd Edition
- Foundations of Game Engine Development (Book Series)
- OpenGL 4 Shading Language Cookbook, 3rd Edition
- Game Engine Architecture, 3rd Edition



Other Social Media stuffs:

twitch.tv/s0llygaming
twitter.com/s0lly
instagram.com/s0lly.gaming
github.com/s0lly
patreon.com/s0lly
Game Engine 13: Simple AtmosphereTransparent Windows feat. Bevy [Rust]Project Overlay 03: Text BoxesCountdown To NYE - A Simple Button Masher in C++Shadow Casting - in Excel!?!First Games in C++: Dungeons and Flagons (v0.75) - Multiple Light Sources2D N-Body Simulation in C++ (v5: 30,000 bodies!)OpenGL Engine - Showcase 10: To OrbitFirst Games in C++: Dungeons and Flagons (v0.89) - Pause Menu / Simple Saving & LoadingAI Steering Behaviour Visualisation v7: Swarm BehaviourSimple 2D Game Engine in C++: Draft 3 - Advanced Player Movement2D Game Engine in C++: [8] 2D Normal Maps
s0lly |

Game Engine 13: Simple Atmosphere

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER