Hello Johannes, On 11/28/2012 06:37 AM, Johannes Brunen wrote: > I have a question about the OpenGL Shading Language version I can use in > my shader code. Is it possible to use version >= 4 within OpenSG?
yes, I believe that should work. You need to make sure to create an OpenGL 4.x context though and have the hardware to support such contexts. > In > case that the answer is No, what is missing for up to date compatibility > with the GL spec? we don't have the infrastructure for the two types of tesselation shaders that were introduced with 4.x yet. > I ask this question because I'm undecided about what is the best route > to go for future shader code I have to write. Is there anyone > (listening) actually writing GLSL 4 based shaders? I think the highest #version tag I've used so far was 330, but that was also outside of OpenSG. By requiring #version 4xx you are excluding anyone without hardware to support OpenGL 4.x, whether that is acceptable depends on your use case of course ;) > How long can I expect shaders written with GLSL 1.x to stay functioning? that's a question for the OpenGL vendors, but I'd say for quite a while. At least Nvidia have repeatedly stated that they will support compatibility profile indefinitely so the shading language for OpenGL 2.1 should stay around as well. Cheers, Carsten ------------------------------------------------------------------------------ Keep yourself connected to Go Parallel: INSIGHTS What's next for parallel hardware, programming and related areas? Interviews and blogs by thought leaders keep you ahead of the curve. http://goparallel.sourceforge.net _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users