Muhammad Hamza c28a71e78e
Use nightly for Rustfmt (#2630)
* add rustfmt.toml, use nightly in CI, update contributing docs

* run `cargo +nightly fmt`
2022-04-21 23:21:15 +05:00
..
2022-04-21 23:21:15 +05:00
2022-04-11 17:02:59 +05:00
2021-12-08 19:13:40 +01: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