8
\$\begingroup\$

is there a GLSL editor for the mac? I need it for iOS OpenGLES2 shader.

How do you best debug shader?

Regards

\$\endgroup\$

1 Answer 1

5
\$\begingroup\$

There are two supported GLSL editors for OS X. The first, known as Shader Builder, comes with the Graphics Tools available from the Apple developer website. The second is the open source Shader Maker. Neither of these tools are strictly for OpenGL ES 2.0, but the best workflow would probably be to get the look you want before you determine how to get the look you can have.

In terms of debugging shaders, it is very difficult to send debugging information back to the CPU. The only strategy that I have ever used is to use conditionals to output a specific color to the screen and look at the output. Tools such as glslDevil also exist, but not for OS X.

\$\endgroup\$
2
  • \$\begingroup\$ If you do decide to use these tools and you are using a #version directive on your shader, be aware that you may need to comment it out during development if you get a shader compilation error due to the specific version not being supported. \$\endgroup\$
    – RomSteady
    Feb 21, 2017 at 0:31
  • \$\begingroup\$ all of them, except glslDevil - the one doesn't work on mac are outdated. the ui looks bad \$\endgroup\$
    – TomSawyer
    Mar 7, 2017 at 7:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .