..
2025-07-23 02:42:43 -04:00
2025-07-23 02:42:43 -04:00
2025-07-23 02:42:43 -04:00
2025-07-23 02:42:43 -04:00
2025-07-23 02:42:43 -04:00

WebGL Example

Demo

This is a simple demo using WebGL with Yew to initialize the GL context, create a render loop, and draw to the canvas with basic shaders using web-sys.

Concepts

  • Accessing a DOM element using NodeRef.
  • Using Javascript APIs with web-sys.

Improvements

  • Use a much more flashy shader

Running

Run this application with the trunk development server:

trunk serve --open