roman_44

WebGL color filters

Recommended Posts

Hey, Babylon citizens.

Is it hart to put functionality of this javascript library to Babylon? 

http://evanw.github.io/glfx.js/demo/

This guys made something like this in Three.js https://github.com/spite/Wagner

And that would be super cool to have this functionality in Babylon. I'm using postProcesses for now from Babylon http://doc.babylonjs.com/tutorials/How_to_use_PostProcesses#builtin-postprocesses  but I have to create all this effects from http://evanw.github.io/glfx.js/demo/  by myself, and I don't know how to do that :)))

Share this post


Link to post
Share on other sites

Some of them can be done with the convolution shader easily. For instance edgeDetect, sharpen, emboss, gaussian can be done in one line: https://github.com/BabylonJS/Babylon.js/blob/master/src/PostProcess/babylon.convolutionPostProcess.ts#L14

Sepia here:

https://github.com/BabylonJS/Samples/blob/97db092191af2bddc2f3c0b98b6dc98c9e6a4456/Demos/Train/demo.js#L29

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.