Drag the mouse in the image to move the object. |
WebGL allows writing hardware-accelerated 3D applications with full access to modern OpenGL capabilities, including programmable shaders. This allows for procedural patterns to be generated on the fly instead of texture images being stored on the server and downloaded over the network. In a bandwidth-constrained setting, like a mobile application or a regular web page viewed over a slow connection, this can be a great idea.
WebGL is still relatively new, but most web browsers support it. This includes mobile browsers. Try this web page on your smartphone. Chances are that you will actually see the 3D content in the pane to the right being rendered at a decent frame rate.
The text area above contains the shader code that is compiled and executed during rendering. If you want to experiment with GLSL fragment shaders, feel free to edit the text, press "recompile" and see your own shader executed in WebGL.
Note that the programmable shader is written in an HTML text field, which means that you can write and edit this kind of shader programs even on your mobile device - even on an iPhone, where programming is otherwise quite restricted.