Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GLSL versions change log?

Is there someplace I can read about the changes and additions made in GLSL from version 1.1 to 1.2 and from 1.2 to 1.3?
Google seem to be at a loss for this and I really don't want to start reading the complete specification.

like image 669
shoosh Avatar asked Jan 30 '09 07:01

shoosh


People also ask

Is gl_FragColor deprecated?

Yes, gl_FragColor is deprecated. You should use the following syntax: layout(location = 0) out vec4 diffuseColor; It is included in the GLSL 4.60 spec under the section 7.1.

Is GLSL the same as OpenGL?

The OpenGL Shading Language (GLSL) is the principal shading language for OpenGL. While, thanks to OpenGL Extensions, there are several shading languages available for use in OpenGL, GLSL (and SPIR-V) are supported directly by OpenGL without extensions. GLSL is a C-style language.

How do I optimize GLSL?

One way to speed up GLSL code, is by marking some variables constant at compile-time. This way the compiler may optimize code (e.g. unroll loops) and remove unused code (e.g. if hard shadows are disabled). The drawback is that changing these constant variables requires that the GLSL code is compiled again.


1 Answers

Version 1.3 of the spec has differences from 1.2 marked, it also lists changes from 1.2. Version 1.2 has a list of changes from 1.1.

like image 196
Rolf Rander Avatar answered Oct 06 '22 01:10

Rolf Rander