Sign in to follow this  
dadiaar

Paint canvas with Fragment shader

Recommended Posts

Which is the best way to paint the canvas with an input Fragment shader using BABYLON? Not a mesh but directly the canvas itself.

I could set up an ortographic camera and a plane in front of it, but that's... just bad.

Thanks in advance

Share this post


Link to post
Share on other sites

I don't follow you. How exactly?

I have several fragment shaders I need to show up, something like in shadertoy. So far I've checked several small JS libraries which allows that, the one which fits the best is glslCanvas, but it looks like it has a but with custom uniforms.

Babylon JS is very well maintained, optimized and compatible. If I can use it for it all my problems are solved.

I tried to paint the GUI, but I don't see the way.

Share this post


Link to post
Share on other sites
21 hours ago, dadiaar said:

the one which fits the best is glslCanvas, but it looks like it has a but with custom uniforms.

It turns out glslCanvas works wonderful. My mistake was setting up the uniforms before loading the shader. My bad.

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.