Skip to content

joates/wasm-glsl-via-rust-and-glium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wasm-glsl-via-rust-and-glium

Almost all of the code in this repository is inspired by Jan-Erik Rediger (aka badboy) i just had to tweak a few build commands and coded a modified index.html to bootstrap the wasm binary.

Uses rust code (glium crate) to generate a WebAssembly binary, which renders a fragment shader (running directly on the GPU).

( this is almost definitely NOT the best or the easiest way to just render a fragment shader in the browser, but hey.. i felt like playing around with some new build tools and see what i could get working )

Be warned !!

This is experimental stuff (as of March 2017 at least) so to get the most recent rustc compiler (with all the latest patches landed) you'll probably want to ## Build it yourself

Getting started

$ cargo clean && make

$ python -m SimpleHTTPServer

Once the server is started, the demo application is located on your local system at localhost:8000

license

This project is dual-licensed under the terms of the Apache 2.0 and MIT licenses.

LICENSE-APACHE

LICENSE-MIT

About

rust -> wasm (experimental)

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published