Rendering 3D graphics in the browser using WebGL

  • New demo: moon shader

    When I was thinking about how to put the moon into the 3D view of my astronomy app, I figured it would be a waste to actually display a textured sphere. After all, we always see the same side of the moon. All that is needed is a textured quad, and a shader which emulates a lit sphere. In the end, the quad was reduced to a single vertex - a point sprite. Try it out in the Demos section: WebGL moon shader