All Projects → spite → Wagner

spite / Wagner

Licence: other
Effects composer for three.js

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Wagner

Solarsys
Realistic Solar System simulation with three.js
Stars: ✭ 49 (-94.73%)
Mutual labels:  webgl, glsl, threejs, shaders
Glsl Godrays
This module implements a volumetric light scattering effect(godrays)
Stars: ✭ 155 (-83.33%)
Mutual labels:  webgl, glsl, shaders
Fsynth
Web-based and pixels-based collaborative synthesizer
Stars: ✭ 146 (-84.3%)
Mutual labels:  webgl, glsl, shaders
Aframe Effects
A VR Ready Post processing framework for Three.js and/or A-Frame
Stars: ✭ 176 (-81.08%)
Mutual labels:  webgl, threejs, shaders
Glsleditor
Simple WebGL Fragment Shader Editor
Stars: ✭ 1,345 (+44.62%)
Mutual labels:  webgl, glsl, shaders
Three.meshline
Mesh replacement for THREE.Line
Stars: ✭ 1,644 (+76.77%)
Mutual labels:  webgl, glsl, threejs
React Regl
React Fiber Reconciler Renderer for Regl WebGL
Stars: ✭ 171 (-81.61%)
Mutual labels:  webgl, glsl, shaders
Glsl Worley
Worley noise implementation for WebGL shaders
Stars: ✭ 66 (-92.9%)
Mutual labels:  webgl, glsl, shaders
cellular-automata-explorer
(WIP) An interactive web app for exploring cellular automata.
Stars: ✭ 18 (-98.06%)
Mutual labels:  threejs, shaders, glsl
Webgl Fundamentals
WebGL lessons that start with the basics
Stars: ✭ 3,315 (+256.45%)
Mutual labels:  webgl, glsl, shaders
Vue Vr
A framework for building VR applications with Vue
Stars: ✭ 348 (-62.58%)
Mutual labels:  webgl, threejs, shaders
Sky Shader
☀️ WebGL sky and sun shader editor
Stars: ✭ 90 (-90.32%)
Mutual labels:  webgl, glsl, threejs
Threejs Starter
Stars: ✭ 89 (-90.43%)
Mutual labels:  webgl, glsl, threejs
Sketch
Explorations on cross-hatching, engraving, and similar non-photorealistic rendering.
Stars: ✭ 136 (-85.38%)
Mutual labels:  webgl, glsl, threejs
3d Game Shaders For Beginners
🎮 A step-by-step guide to implementing SSAO, depth of field, lighting, normal mapping, and more for your 3D game.
Stars: ✭ 11,698 (+1157.85%)
Mutual labels:  webgl, glsl, shaders
Threejs Sandbox
Set of experiments and extensions to THREE.js.
Stars: ✭ 163 (-82.47%)
Mutual labels:  webgl, threejs, shaders
Veda
⚡VJ / Live Coding on Atom⚡
Stars: ✭ 373 (-59.89%)
Mutual labels:  webgl, glsl, shaders
Glslcanvas
Simple tool to load GLSL shaders on HTML Canvas using WebGL
Stars: ✭ 1,067 (+14.73%)
Mutual labels:  webgl, glsl, shaders
Magicshader
🔮 Tiny helper for three.js to debug and write shaders
Stars: ✭ 205 (-77.96%)
Mutual labels:  webgl, glsl, threejs
Shader Doodle
A friendly web-component for writing and rendering shaders.
Stars: ✭ 356 (-61.72%)
Mutual labels:  webgl, glsl, shaders

Wagner

Effects composer for three.js

This is a WIP version of a new proposal for an effect composer for three.js

There's a demo with the latest-ish version of the code here demo. Here's a snapshot to give you an idea of what it can achieve:

Image

Please use it only for review and test purposes. Don't hesitate to add issues or open a conversation about design decisions.

Basic usage

/*
Include the libs
<script src="Wagner.js"></script>
*/

var composer = new WAGNER.Composer( renderer );
composer.setSize( window.innerWidth, window.innerHeight ); // or whatever resolution

var zoomBlurPass = new WAGNER.ZoomBlurPass();
var multiPassBloomPass = new WAGNER.MultiPassBloomPass();

renderer.autoClearColor = true;
composer.reset();
composer.render( scene, camera );
composer.pass( multiPassBloomPass );
composer.pass( zoomBlurPass );
composer.toScreen();

What works

  • Passes are by default RGBA
  • Ping-pong buffers when chaining passes
  • ShaderLoader is being replaced, but you can use it to load .glsl files. It hides all the XHR stuff
  • Composing with Wagner for effects that run chained with the same resolution (e.g. full-screen effects)
  • Basic effects implemented in the new WAGNER.Pass class:
    • Blend pass: all single pass. Current blend modes implemented: normal, darken, multiply, lighten, screen, overlay, soft light, hard light
    • Invert: single pass, inverts colours
    • Box Blur: single pass, blur in one direction specified in vec2 delta uniform
    • Full Box Blur: multipass, 2 box blur in two directions
    • Zoom Blur: single pass
    • Sepia, Noise, Denoise, Vignette, edge detection
    • Multi Pass Bloom: multipass, applies blur and blends with Screen mode
    • DOF (simple)
    • SSAO (simple)
  • uniform reflection from GLSL source is working enough to be usable for most cases
  • settings different path for shader loading

What still doesn't work / needs work

  • ShaderLoader will probably be removed, or be transparent to the user
  • Passing parameters to WAGNER.ShaderPass from main code
  • Correct use of textures of different dimensions along the chain
  • Resizing correctly all render targets
  • Multiple Composers working at the same time
  • Shaders that are not ported to WAGNER.Pass: pixelate, rgb split, different single-pass bloom
  • Shaders that haven't even been ported to WAGNER: camera motion blur, directional blur, gamma, levels,
  • Alias definition of passes (previously loadPass()) legacy
  • uniform reflection from GLSL source doesn't support structures (I don't even know if WebGL supports structures)

Credits

Composer following the work of alteredq's THREE.EffectComposer

Most of the shaders are from https://github.com/evanw/glfx.js. Others are from different sources and forums, papers, or my own.

License

MIT licensed

Copyright (C) 2014 Jaume Sanchez Elias - All shaders are copyright of their respective authors.

I'm trying to trace the original source for some of the common shaders. If your code is featured in the shaders folders, and wish to be correctly credited, or the code removed, please open an issue.

http://www.clicktorelease.com

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].