🌍 Earth
Realtime render of the earth built with pure WebGL and Typescript.
It has the following features:
- Atmospheric rayleigh scattering
- Blinn phong lighting
- Sphere mesh created by recursively subdividing a handmade icosahedron
- Specular highlights masked to oceans, rivers and ice
- Separate day and night textures
- Basic particle system to render procedural stars
- Orbit camera with auto-adjusting FOV for viewport size
- Implementations of Vec3, Matrix4 and Quaternion
- HDR tone mapping and gamma correction
github:
prdx23/earth
Controls
- move: wasd, arrow keys or click/touch and drag
- zoom: +/- keys or mouse scroll
Attribution
glitchcomet.com →