Separate the code for shading, webgl, and scene management, to get a more flexible basis for WebGL rendering.