spite / Wagner

Effects composer for three.js
Other
1.07k stars 128 forks source link

[WIP] Shaders realtime editor #14

Closed risq closed 9 years ago

risq commented 9 years ago

Hi,

I've developed a new editor based on the (messy) one I sent you a few weeks ago.

I tried to improve many things from the last version. Once again I leave it as a pull request if it can help you. As I added some code in the Wagner core to make it work (like the passes stacks abstraction) you may agree or not with this implementation. If you think these changes are not relevant for the core I'll try to maintain the editor as an external app :) But if you like it, feel free to merge the fork and improve it as you need !

Many things need to be optimized (in the core additions and the editor itself) as it is only a draft yet.

Currently the editor supports :

Here are the two modules I added to Wagner to make it work :

The pool object allows to store many stacks without keeping lots of shaders objects in memory, and easily switch from a stack to another.

Some possible enhancements :

Some screenshots of the app at its current state : editor1 editor2

spite commented 9 years ago

This is awesome! I haven't had time to review the changes, but it looks really cool. I'll check it as soon as possible!