Tools for GLSL editing [closed]

落爺英雄遲暮 提交于 2019-11-29 19:14:22
George Profenza

Looking forward to see some nice answers.

In the meantime, I recommend having a play with ShaderToy and FractalLab

It's not a full IDE, but the WebGL inspector browser extension by benvanik seems promising:

http://benvanik.github.com/WebGL-Inspector/

From his page a number of features that might be along the lines you're looking for:

  • Extension for injecting into pages
  • Embed in an existing application with a single script include
  • Capture entire GL frames
  • Annotated call log with stepping/resource navigation and redundant call warnings
  • Pixel history see all draw calls that contributed to a pixel + blending information
  • GL state display
  • Resource browsers for textures, buffers, and programs

I've only used it a little bit, but it seems to be a lot better than working in the bare browser.

This may or may not help but if you have access to a Mac you can use Quartz Composer for this. For example you can put a trackball and clear patch in a composition, add a glsl shader patch to the trackball and add add the a teapot patch to the glsl shader patch. Then if you go to settings on the glsl shader, you have access to the vertex and fragment shader code. Any changes you make will be displayed in real time. The only drawback is that as far as I can tell you have to use hard-coded constants instead of uniforms. It's not perfect but its fine for playing with new effects and rapid prototyping of algorithms.

If you develop on the Mac, there is the OpenGL shader builder from Apple:

http://developer.apple.com/graphicsimaging/opengl/shader_image.html

SaldaVonSchwartz

I don't know if you've already found a tool that works for you. But, there's:

ShaderMaker http://cgvr.cs.uni-bremen.de/teaching/shader_maker/

which is cross-platform (I've tested it under Windows and OSX)

and

glman http://web.engr.oregonstate.edu/~mjb/glman/

which is windows-only but, according to the authors, will be ported to mac eventually.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!