Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GLSL Editor program [closed]

I'm looking for a GLSL editor program. I did find some by googling, but I wanna know if there are any preferred ones based on user experience.

Possible features:

  • Syntax Highlighting
  • Intellisense
  • Automatic compile and link

P.S.
I'm not even sure if it's meaningful/possible for GLSL to be compiled automatically (any comments?).

EDIT:
Here's what I found:

  • Shader Maker
like image 567
atoMerz Avatar asked Feb 10 '12 08:02

atoMerz


2 Answers

Try out KickJS's Shader Editor. It currently supports syntax highlight and compiles the code as you write.

http://www.kickjs.org/example/shader_editor/shader_editor.html

If you are running OS/X you should try out the OpenGL Shader Builder, even though this tool feels a little out-dated:

/Developer/Applications/Graphics Tools/OpenGL Shader Builder.app

There is also the GLman, which maybe is more a GLSL sandbox environment than a editor. A good introduction to the program is found in the excellent book: 'Graphics Shaders - Theory and practice - Second edition'.

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

like image 62
Mortennobel Avatar answered Oct 01 '22 09:10

Mortennobel


I found shader toy to be helpful. Contains some predefined shaders you can tweak and see instant results. All online and covers WebGL, OpenGL ES 1.1 / (some) 2.0, probably OpenGL various versions too.

https://www.shadertoy.com/

It passes in some predefined uniforms as well as up to 4 textures you can hyperlink too.

Here are the following inputs:

  • uniform vec4 mouse: xy contain the current pixel coords (if LMB is down). zw contain the click pixel.
  • uniform vec2 resolution: the rendering vieport resolution.
  • uniform float time: current time in seconds.
  • uniform sampler2D tex0: sampler for input texture 0.
  • uniform sampler2D tex1: sampler for input texture 1.
  • uniform sampler2D tex2: sampler for input texture 2.
  • uniform sampler2D tex3: sampler for input texture 3.
like image 41
Eat at Joes Avatar answered Oct 01 '22 10:10

Eat at Joes