webgl-framework
curtainsjs
Our great sponsors
webgl-framework | curtainsjs | |
---|---|---|
2 | 3 | |
4 | 1,607 | |
- | - | |
0.0 | 3.6 | |
8 months ago | 7 months ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
webgl-framework
-
Creating mountains landscape in OpenGL ES
After the terrain we draw a sky hemisphere object with the basic DiffuseShader, and then draw 11 cloud sprites. Then we draw a sun sprite. These transparent objects are rendered without writing to the depth buffer. Clouds and sun have trimmed geometries for less overdraw. You can read about this optimized sprites technique here. We decided not to use soft particles for clouds because scene size allowed us to place them so that they don’t intersect with other geometries while still partially occluding some peaks. Not using soft particles is beneficial for performance because they require additional render pass to render scene depth.
-
Rendering dunes terrain in WebGL
Historically, the web demo was created first — it was used as a prototyping playground to compose a scene and to fine-tune shaders. Also, this really helps in sharing work between a team of two people without necessity to learn Android Studio for both. And when everything was polished and looked good enough, an Android app was created quite fast based on the web demo code. Porting code to Android is a quite straightforward and easy process because our WebGL framework has the same method signatures as the framework used in Android apps.
curtainsjs
-
How to recreate this animated background with distortion effect?
If you're purely wanting to add a shader effect then as a newcomer to the shader world I'd recommend curtainsjs as an easy way to add custom shaders without the hassle of having to deal with low level WebGL setup stuff. They even have a similar example with the mouse distortion effect where the code is much more readable and well commented with another codepen by the creator of curtains which has a more similar mouse flow effect that could be repurposed to be a post effect shader and distort the output of a gradient shader.
-
Web Effect
Curtainsjs - Lightweight vanilla WebGL JavaScript library that turns HTML DOM elements into interactive textured planes.
What are some alternatives?
engine - Fast and lightweight JavaScript game engine built on WebGL and glTF
shader-web-background - Displays GLSL fragment shaders as a website background. Supports offscreen buffers and floating point textures on almost any browser and hardware. Compatible with Shadertoy.
webgl-mountains - Icelandic terrain with different times of day.
framer/motion - Open source, production-ready animation and gesture library for React
webgl-dunes - WebGL dunes demo
THREE.MeshLine - Mesh replacement for THREE.Line
GreenSock-JS - GSAP (GreenSock Animation Platform), a JavaScript animation library for the modern web
particles-bg - React particles animation background component
tsParticles - tsParticles - Easily create highly customizable JavaScript particles effects, confetti explosions and fireworks animations and use them as animated backgrounds for your website. Ready to use components available for React.js, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Inferno, Solid, Riot and Web Components.
glsl-smaa - SMAA (Enhanced Subpixel Morphological Antialiasing) post-processing; WebGL (OpenGL ES 2.0) implementation with no fluff.
fabric.js - Javascript Canvas Library, SVG-to-Canvas (& canvas-to-SVG) Parser
taro - A lightweight 3D game engine for the web.