dadiaar Posted September 3, 2018 Share Posted September 3, 2018 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 Quote Link to comment Share on other sites More sharing options...
MinZe Posted September 3, 2018 Share Posted September 3, 2018 Why don't you paint on the canvas directly? without babylon and without shaders Quote Link to comment Share on other sites More sharing options...
dadiaar Posted September 3, 2018 Author Share Posted September 3, 2018 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. Quote Link to comment Share on other sites More sharing options...
dadiaar Posted September 4, 2018 Author Share Posted September 4, 2018 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.