Shader Coding - Best Practices: Difference between revisions

No edit summary
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>
}}
}}