All Projects → DanRuta → webassembly-webgl-shaders

DanRuta / webassembly-webgl-shaders

Licence: other
Demo project for using WebGL shaders in WebAssembly

Programming Languages

c
50402 projects - #5 most used programming language
C++
36643 projects - #6 most used programming language
HTML
75241 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to webassembly-webgl-shaders

procedural-tileable-shaders
Collection of tileable procedural textures such as: cellular noise, fbm, voronoi, perlin and other.
Stars: ✭ 175 (+63.55%)
Mutual labels:  shaders, glsl
Glsltuto
GLSL shaders tutorial
Stars: ✭ 168 (+57.01%)
Mutual labels:  shaders, glsl
Glsl Godrays
This module implements a volumetric light scattering effect(godrays)
Stars: ✭ 155 (+44.86%)
Mutual labels:  shaders, glsl
Reshade
A generic post-processing injector for games and video software.
Stars: ✭ 2,285 (+2035.51%)
Mutual labels:  shaders, glsl
Js
turbo.js - perform massive parallel computations in your browser with GPGPU.
Stars: ✭ 2,591 (+2321.5%)
Mutual labels:  shaders, glsl
Glsl
VSIX Project that provides GLSL language integration.
Stars: ✭ 155 (+44.86%)
Mutual labels:  shaders, glsl
Perlin-Noise-3D-Voxel-Generator
Voxel generator based on perlin 3d noise | Python OpenGL
Stars: ✭ 22 (-79.44%)
Mutual labels:  shaders, glsl
Wisdom Shaders
A Minecraft shaderspack. Offers high performance with high quality at the same time.
Stars: ✭ 132 (+23.36%)
Mutual labels:  shaders, glsl
Glslviewer
Console-based GLSL Sandbox for 2D/3D shaders shaders
Stars: ✭ 2,834 (+2548.6%)
Mutual labels:  shaders, glsl
React Regl
React Fiber Reconciler Renderer for Regl WebGL
Stars: ✭ 171 (+59.81%)
Mutual labels:  shaders, glsl
Retrace.gl
Create, ray trace & export programatically defined Signed Distance Function CSG geometries with an API suited for generative art - in your browser! 🎉
Stars: ✭ 149 (+39.25%)
Mutual labels:  shaders, glsl
NobleRT
A Minecraft shaderpack that enhances one's experience with the help of good-looking graphics and light simulations.
Stars: ✭ 76 (-28.97%)
Mutual labels:  shaders, glsl
Fsynth
Web-based and pixels-based collaborative synthesizer
Stars: ✭ 146 (+36.45%)
Mutual labels:  shaders, glsl
glNoise
A collection of GLSL noise functions for use with WebGL with an easy to use API.
Stars: ✭ 185 (+72.9%)
Mutual labels:  shaders, glsl
Bookofshaders Godot
BookOfShaders in Godot Shader Language
Stars: ✭ 134 (+25.23%)
Mutual labels:  shaders, glsl
Gaiasky
Mirror of Gaia Sky repository hosted on Gitlab: https://gitlab.com/langurmonkey/gaiasky
Stars: ✭ 162 (+51.4%)
Mutual labels:  shaders, glsl
Godot Motion Blur
A motion blur shader for Godot 3.0
Stars: ✭ 115 (+7.48%)
Mutual labels:  shaders, glsl
Polygon Wind
Wind shader for low poly assets in Unity.
Stars: ✭ 119 (+11.21%)
Mutual labels:  shaders, glsl
Spirv Vm
Virtual machine for executing SPIR-V
Stars: ✭ 173 (+61.68%)
Mutual labels:  shaders, glsl
Shadered
Lightweight, cross-platform & full-featured shader IDE
Stars: ✭ 3,247 (+2934.58%)
Mutual labels:  shaders, glsl

WebAssembly WebGL Shaders

Example project for using WebGL shaders in a WebAssembly program.


Article link

https://medium.freecodecamp.org/how-to-use-webgl-shaders-in-webassembly-1e6c5effc813


Run npm install, for dependencies, node server to serve files, and grunt for compiling changes.

To compile:

emcc -o ./dist/appWASM.js ./dev/cpp/emscripten.cpp -O3 -s ALLOW_MEMORY_GROWTH=1 -s USE_WEBGL2=1 -s FULL_ES3=1 -s WASM=1 -s NO_EXIT_RUNTIME=1 -std=c++1z -s EXTRA_EXPORTED_RUNTIME_METHODS="['ccall','stringToUTF8']" -s ASSERTIONS=1

or compile with DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR=0 (Thank you veslam)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].