DEV Community


Discussion on: Creating a custom shader in Three.js

adambernath profile image

Have you played with the webgl shader editor yet? this -
I'm trying to use the output code as a vertex/fragment shader, but I cant make it work, I don't really know what I'm doing wrong, but mixing the two together would create a really awesome shader editor for three js

maniflames profile image
Maniflames Author

No I haven't but it looks cool! The code generated by the environment contains a lot of uniforms, it might be that some of them are defined with a different name in threejs' environment. There are a lot of things that could go wrong though, I've only glanced a bit over the code generated by the example.