Skip to content
This repository has been archived by the owner on Jun 11, 2018. It is now read-only.

Commit

Permalink
Move GLSL extensions into common.glsl
Browse files Browse the repository at this point in the history
  • Loading branch information
raynorpat committed Dec 9, 2017
1 parent cdd220a commit 7d3329f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions baseq2/glsl/brush.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ void LightmappedVS ()


#ifdef FRAGMENTSHADER
#extension GL_EXT_texture_array : enable

uniform sampler2D diffuse;
uniform sampler2DArray lightmap;
uniform float surfalpha;
Expand Down
3 changes: 3 additions & 0 deletions baseq2/glsl/common.glsl
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@

// common.glsl

#extension GL_EXT_texture_array : enable
#extension GL_ARB_texture_gather : require

float saturate( float v ) { return clamp( v, 0.0, 1.0 ); }
vec3 saturate( vec3 v ) { return clamp( v, 0.0, 1.0 ); }

Expand Down
2 changes: 0 additions & 2 deletions baseq2/glsl/ssao.glsl
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

#extension GL_ARB_texture_gather : require

// common
INOUTTYPE vec4 texcoords;
INOUTTYPE vec3 unprojectionParams;
Expand Down

0 comments on commit 7d3329f

Please sign in to comment.