574
edits
No edit summary |
|||
(2 intermediate revisions by one other user not shown) | |||
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}} | ||
{{Rendering}} | |||
== File Header == | == File Header == | ||
{{Note|It's a good idea to add a header to each shader detailing: | {{Note|It's a good idea to add a header to each shader detailing: | ||
Line 25: | Line 25: | ||
<syntaxhighlight lang="glsl"> | <syntaxhighlight lang="glsl"> | ||
#version 120 | #version 120 | ||
</syntaxhighlight> | |||
}} | |||
== Enabling Extensions == | |||
{{Note|:To enable vendor specific extensions, use the '''#extension''' pragma at the top of the file, for example: | |||
<syntaxhighlight lang="glsl"> | |||
#extension GL_ATI_shader_texture_lod : enable | |||
#extension GL_ARB_shader_texture_lod : enable | |||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} | ||
Line 60: | Line 69: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} | ||
[[Category:Shader development]] |
edits