Spotted Balloon Bursts
WebGL Shader with GLSL
Swipe Over the Balloon!
This WebGL shader causes a spotted balloon texture to expand in the center then burst at the end.
The GLSL vertex shader distorts the mesh. Center vertices move toward the viewport. The spotted pattern accentuates the effect.
This example loads a lightweight square mesh with just four quadrants. Consider adding more quadrants for smoother edges on the balloon.
Simple Shaders: Learn WebGL Book 4
Learn the basics of WebGL shader programming withSimple Shaders: Learn WebGL Book 4. This book covers seven projects with unique shaders, in detail, providing an overview of GLSL (OpenGL Shading Language), which is the shader language used for WebGL. See the following projects online
Spotlight Across Text, Radiating Colors, Cube Vertex Colors, Color Filters, Zoom Shader, Spotted Balloon Burstsand
Colors Fade. Most shaders activate as you swipe over the canvas. See various visual effects including color animation, zooming, color filters, a traveling spotlight and expanding mesh.
Simple Shaders
explains how to prepare basic WebGL GLSL shaders.
This new Kindle book includes detailed instruction and links to many interesting
WebGL shader examples online.
Learn to program WebGL shaders. Harness the power of the Graphics Processing Unit (GPU).