Skybox
✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Apr 24, 2013
A stereographic projection of a skybox texture maps the six faces of a cube onto a navigable 2D view, rendered as an animated WebGL canvas. The fragment shader inversely projects each pixel to the cube’s surface, applying rotation and translation uniforms to simulate camera movement. Texture images (xpos.png, ypos.png, etc.) are loaded via a D3 queue and bound as a cube map, while vertex and fragment shaders are compiled with the experimental WebGL context API.
AI-generated descriptionThis is probably not how you’re supposed to implement a skybox… but it appears to work. Texture by Keith Lantz.
gpl-3.0 Licensed