GitHub - maierfelix/wasm-particles: WASM accelerated particle experiment
source link: https://github.com/maierfelix/wasm-particles
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
wasm-particles
This is a visual benchmark, each particle is updated from WebAssembly and then drawn to the screen with WebGL. Normally you would outsource everything to the GPU, but to showcase WASM's speed each particle is updated within the WASM module (and so updated on the CPU).
There is also some basic glue code to work with point based textures. You can tell the wasm module to allocate some space for a RGB texture and then have access from JS to manipulate it etc. Since there is no garbage collection for WebAssembly yet, you have to free the texture manually. The three example methods to work with textures: allocateTexture
, freeTexture
and drawTexture
which fills the texture's pixels into the relative particles.
Recommend
-
77
README.md
-
40
README.md React Particles WebGL A 2D/3D particle library built with React, Three.js and WebGL react-particles...
-
73
react-native-particles Declarative particle system for react native. Works on iOS and Android. It uses Animated api and useNativeDriver:true to archieve 60 FPS particles animation
-
1
The previous Particles.js tutorial briefly discussed various features that the library offers and how to get started with the library. In this tutorial, I wi...
-
8
GPU-Accelerated Particles with WebGL 2 The WebGL 2 specification is based on GL ES 3, and has many new f...
-
2
A Cosmic Web Connecting the Universe Shapes Dark Matter in Galaxies, Study FindsGalaxies located at cosmic web “nodes” assemble dark matter earlier, and are more enriched with heavy elements, compared with those tha...
-
103
README.md rokon-engine This is a hybrid JavaScript/WebAssembly 3D engine using WebGL2. It's using glmw, a C port of gl-matrix.
-
73
README.md node-vulkan This is a Vulkan API for node.js. The bindings are machine generated and provide an API to interact from JavaScript with t...
-
133
pokemon-emerald-rom-hacking This is a ROM hacking kit for the Pokemon Emerald ROM (USA 1.0). I hacked together a little demo game
-
54
GitHub is where people build software. More than 27 million people use GitHub to discover, fork, and contribute to over 80 million projects.
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK