Triangle Example (asm.js)
Hello World of 3D graphics. Displays simple triangle with different
colors for each vertex, which are interpolated over the triangle area using
minimal possible amount of code.
This example requires a browser with WebGL 1 enabled. Unlike the
WebAssembly version, this example
uses only asm.js, so it should work on more
browsers. If you see a black rectangle instead of a live example, the
browser console might show some details about the error. See the
Showcase page for more information; you
can also report a bug either for the example itself
or for the website. Feedback welcome!
Source code and documentation
You can find a thorough tutorial together with source code of this example
in the documentation.