Simple WebGL example

By | 15/11/2012

WebGL is a software library and cross-platform API that extends the capability of the JavaScript programming language.
That brings OpenGL to the web as a 3D drawing context within HTML
Today we present a simple example of using WebGL.
Here, there is an HTML content, javascript, and content of WebGL content.
The three main sections are combined.
In section WebGL enter and the fragment shader and vertex shader.
For those who have worked with OpenGL will be easy to recognize specific functions.
The full example can be found at jsfiddle.net
Also, the source code is written for OpenGL format file.

The result is this:

2 thoughts on “Simple WebGL example

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.