Post

WebGL demo

Test embed graphic project

Demo

See the Pen Untitled by K3K (@gamer2810) on CodePen.

Description

The above project demonstrates how to set up a basic OpenGL application, in this case using WebGL.

It includes:

  • The main JS function that handles rendering.
  • The rendering program setup and shader binding using WebGL.
  • Vertex Shader written in GLSL.
  • Fragment Shader written in GLSL.

Spherical demo

How many points do you want?

References

WebGL2 Fundamentals

This post is licensed under CC BY 4.0 by the author.

Comments powered by Disqus.