Shader Coding - Best Practices: Difference between revisions

m
no edit summary
mNo edit summary
Line 1: Line 1:
{{WIP|Will be based on: http://www.mail-archive.com/flightgear-devel@lists.sourceforge.net/msg35934.html}}
{{WIP|Will be based on: http://www.mail-archive.com/flightgear-devel@lists.sourceforge.net/msg35934.html}}
== Supported GLSL Versions ==
{{Note|Be aware that we currently '''_DO_NOT_''' support glsl <nowiki>> 1.2x. Please don't mix '''glsl''' flavours: please stick to glsl 1.2x.(even though support for it is largely </nowiki>''deprecated''). The transition to OpenGL 3.0 / glsl <nowiki>>=1.3x is a very big undertaking, and not backward compatible. It is always a good idea to declare the expected GLSL version at the top of each file</nowiki>:
<syntaxhighlight lang="glsl">
#version 120
</syntaxhighlight>
}}


== Vertex Shaders ==
== Vertex Shaders ==