glslCanvas is a JavaScript library for loading and animating GLSL fragment and vertex shaders inside HTML canvas elements with WebGL. Developers can attach shaders through HTML data attributes or instantiate a programmable canvas sandbox in JavaScript. The library automatically creates the WebGL context, compiles the supplied shader, and begins rendering it. Shaders can be loaded from inline strings or external URLs and reloaded while the page is running. Built-in uniforms expose elapsed time, viewport resolution, mouse position, and ordered texture inputs. Custom uniforms and textures can also be supplied, making the library useful for shader demos, generative graphics, interactive backgrounds, and learning tools.

Features

  • Automatic WebGL canvas initialization
  • Fragment and vertex shader loading
  • Inline and external shader sources
  • Live shader reloading
  • Built-in time, mouse, and resolution uniforms
  • Custom uniforms and texture inputs

Project Samples

Project Activity

See All Activity >

Categories

HTML/XHTML

License

MIT License

Follow glslCanvas

glslCanvas Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of glslCanvas!

Additional Project Details

Operating Systems

Windows

Programming Language

JavaScript

Related Categories

JavaScript HTML XHTML

Registered

3 days ago