PDA

View Full Version : What is suitable tool for glsl 1.3?



reader1
03-25-2015, 06:24 AM
most of them have ceased to develop, what's the best one for 1.3?

Alfonse Reinheart
03-25-2015, 07:34 AM
If you're looking for a program to write shaders in, Notepad++ is a pretty solid tool.

reader1
03-25-2015, 07:44 AM
If you're looking for a program to write shaders in, Notepad++ is a pretty solid tool.

that is perfectly tool for writing shaders, how about compile and build them?

Alfonse Reinheart
03-25-2015, 10:14 AM
Compiling shaders (https://www.opengl.org/wiki/Shader_Compilation) happens during the execution of your application. When you call glCompileShader or glCreateShaderProgramv.

Dark Photon
03-25-2015, 05:09 PM
that is perfectly tool for writing shaders, how about compile and build them?

Another option is nVidia's Cg (https://developer.nvidia.com/cg-toolkit-download) command-line compiler. For instance:



cgc -oglsl -strict -glslWerror -nocode -profile gp5vp my.vert


Or for fragment and geometry shaders, you can use the gp5fp and gp5gp profiles, respectively.

This is handy when you want to do a quick "kick the tires" test to make sure your code looks reasonable to a compiler, before you take the time to bring it up in your application.

Doubtless there are others out there. This may be one, though I haven't personally used it:

* glsl-optimizer (https://github.com/aras-p/glsl-optimizer) - GLSL optimizer based on Mesa's GLSL compiler

reader1
03-25-2015, 05:42 PM
Another option is nVidia's Cg (https://developer.nvidia.com/cg-toolkit-download) command-line compiler. For instance:



cgc -oglsl -strict -glslWerror -nocode -profile gp5vp my.vert


Or for fragment and geometry shaders, you can use the gp5fp and gp5gp profiles, respectively.

This is handy when you want to do a quick "kick the tires" test to make sure your code looks reasonable to a compiler, before you take the time to bring it up in your application.

Doubtless there are others out there. This may be one, though I haven't personally used it:

* glsl-optimizer (https://github.com/aras-p/glsl-optimizer) - GLSL optimizer based on Mesa's GLSL compiler

I must ask a wrong question for you misunderstand. It should be which new opengl3.0 tool for us to use?
Some of them offered at this web site is out of time, for example, rendermonk etc. has not been supported by the developers, nvidia, amd...
sorry for mislead.