Add missing shader version tags for the other shaders too
This commit is contained in:
parent
727c3feb11
commit
3fa2ade35f
55 changed files with 172 additions and 93 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
#version 120
|
||||||
|
|
||||||
uniform sampler2D baseTexture;
|
uniform sampler2D baseTexture;
|
||||||
varying float fogFactor;
|
varying float fogFactor;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#version 120
|
||||||
|
|
||||||
uniform sampler2D baseTexture;
|
uniform sampler2D baseTexture;
|
||||||
varying float fogFactor;
|
varying float fogFactor;
|
||||||
varying vec4 cloudColor;
|
varying vec4 cloudColor;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// -*-C++-*-
|
// -*-C++-*-
|
||||||
|
#version 120
|
||||||
|
|
||||||
// written by Thorsten Renk, May 2014
|
// written by Thorsten Renk, May 2014
|
||||||
// based on ALS terrain shader
|
// based on ALS terrain shader
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// -*-C++-*-
|
// -*-C++-*-
|
||||||
|
#version 120
|
||||||
|
|
||||||
// written by Thorsten Renk, Oct 2011, based on default.frag
|
// written by Thorsten Renk, Oct 2011, based on default.frag
|
||||||
// Ambient term comes in gl_Color.rgb.
|
// Ambient term comes in gl_Color.rgb.
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#version 120
|
||||||
|
|
||||||
uniform sampler2D color_tex;
|
uniform sampler2D color_tex;
|
||||||
uniform sampler2D ao_tex;
|
uniform sampler2D ao_tex;
|
||||||
uniform sampler2D normal_tex;
|
uniform sampler2D normal_tex;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// -*-C++-*-
|
// -*-C++-*-
|
||||||
|
#version 120
|
||||||
|
|
||||||
uniform sampler2D texture;
|
uniform sampler2D texture;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#version 120
|
||||||
|
|
||||||
uniform sampler2D color_tex;
|
uniform sampler2D color_tex;
|
||||||
uniform sampler2D spec_emis_tex;
|
uniform sampler2D spec_emis_tex;
|
||||||
void main() {
|
void main() {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#version 120
|
#version 120
|
||||||
|
|
||||||
uniform sampler2D input_tex;
|
uniform sampler2D input_tex;
|
||||||
uniform vec2 fg_BufferSize;
|
uniform vec2 fg_BufferSize;
|
||||||
uniform float blurOffset_x;
|
uniform float blurOffset_x;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#version 120
|
||||||
|
|
||||||
uniform sampler2D lighting_tex;
|
uniform sampler2D lighting_tex;
|
||||||
uniform sampler2D bloom_tex;
|
uniform sampler2D bloom_tex;
|
||||||
uniform sampler2D film_tex;
|
uniform sampler2D film_tex;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#version 120
|
||||||
|
|
||||||
uniform sampler2D baseTexture;
|
uniform sampler2D baseTexture;
|
||||||
varying float fogFactor;
|
varying float fogFactor;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#version 120
|
||||||
|
|
||||||
uniform sampler2D baseTexture;
|
uniform sampler2D baseTexture;
|
||||||
varying float fogFactor;
|
varying float fogFactor;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#version 120
|
||||||
|
|
||||||
uniform sampler2D baseTexture;
|
uniform sampler2D baseTexture;
|
||||||
varying float fogFactor;
|
varying float fogFactor;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#version 120
|
||||||
|
|
||||||
uniform sampler2D baseTexture;
|
uniform sampler2D baseTexture;
|
||||||
varying float fogFactor;
|
varying float fogFactor;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#version 120
|
||||||
|
|
||||||
uniform sampler2D baseTexture;
|
uniform sampler2D baseTexture;
|
||||||
varying float fogFactor;
|
varying float fogFactor;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#version 120
|
||||||
|
|
||||||
uniform sampler2D baseTexture;
|
uniform sampler2D baseTexture;
|
||||||
varying float fogFactor;
|
varying float fogFactor;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#version 120
|
||||||
|
|
||||||
uniform sampler2D baseTexture;
|
uniform sampler2D baseTexture;
|
||||||
varying float fogFactor;
|
varying float fogFactor;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#version 120
|
||||||
|
|
||||||
uniform sampler2D baseTexture;
|
uniform sampler2D baseTexture;
|
||||||
varying float fogFactor;
|
varying float fogFactor;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#version 120
|
||||||
|
|
||||||
uniform sampler2D baseTexture;
|
uniform sampler2D baseTexture;
|
||||||
|
|
||||||
varying float fogFactor;
|
varying float fogFactor;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#version 120
|
||||||
#extension GL_EXT_gpu_shader4 : enable
|
#extension GL_EXT_gpu_shader4 : enable
|
||||||
// -*- mode: C; -*-
|
// -*- mode: C; -*-
|
||||||
// Licence: GPL v2
|
// Licence: GPL v2
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#version 120
|
||||||
#extension GL_EXT_gpu_shader4 : enable
|
#extension GL_EXT_gpu_shader4 : enable
|
||||||
//
|
//
|
||||||
// attachment 0: normal.x | normal.x | normal.y | normal.y
|
// attachment 0: normal.x | normal.x | normal.y | normal.y
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#version 120
|
||||||
|
|
||||||
uniform sampler2D lighting_tex;
|
uniform sampler2D lighting_tex;
|
||||||
uniform sampler2D bloom_tex;
|
uniform sampler2D bloom_tex;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// -*-C++-*-
|
// -*-C++-*-
|
||||||
|
#version 120
|
||||||
|
|
||||||
// written by Thorsten Renk, Oct 2011, based on default.frag
|
// written by Thorsten Renk, Oct 2011, based on default.frag
|
||||||
// Ambient term comes in gl_Color.rgb.
|
// Ambient term comes in gl_Color.rgb.
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#version 120
|
||||||
|
|
||||||
uniform sampler2D depth_tex;
|
uniform sampler2D depth_tex;
|
||||||
uniform sampler2D normal_tex;
|
uniform sampler2D normal_tex;
|
||||||
uniform sampler2D color_tex;
|
uniform sampler2D color_tex;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// -*- mode: C; -*-
|
// -*- mode: C; -*-
|
||||||
|
#version 120
|
||||||
// Licence: GPL v2
|
// Licence: GPL v2
|
||||||
// Author: Frederic Bouvier.
|
// Author: Frederic Bouvier.
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// -*- mode: C; -*-
|
// -*- mode: C; -*-
|
||||||
|
#version 120
|
||||||
// Licence: GPL v2
|
// Licence: GPL v2
|
||||||
// Author: Frederic Bouvier.
|
// Author: Frederic Bouvier.
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// -*-C++-*-
|
// -*-C++-*-
|
||||||
|
#version 120
|
||||||
|
|
||||||
varying vec2 rawPos;
|
varying vec2 rawPos;
|
||||||
varying vec2 nPos;
|
varying vec2 nPos;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// -*-C++-*-
|
// -*-C++-*-
|
||||||
|
#version 120
|
||||||
|
|
||||||
uniform float air_pollution;
|
uniform float air_pollution;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#version 120
|
||||||
|
|
||||||
//#define fog_FuncTION
|
//#define fog_FuncTION
|
||||||
//varying vec3 PointPos;
|
//varying vec3 PointPos;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#version 120
|
||||||
|
|
||||||
uniform vec2 fg_BufferSize;
|
uniform vec2 fg_BufferSize;
|
||||||
uniform vec3 fg_Planes;
|
uniform vec3 fg_Planes;
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#version 120
|
||||||
|
|
||||||
uniform vec2 fg_BufferSize;
|
uniform vec2 fg_BufferSize;
|
||||||
uniform vec3 fg_Planes;
|
uniform vec3 fg_Planes;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// -*-C++-*-
|
// -*-C++-*-
|
||||||
|
#version 120
|
||||||
|
|
||||||
// Ambient term comes in gl_Color.rgb.
|
// Ambient term comes in gl_Color.rgb.
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// -*-C++-*-
|
// -*-C++-*-
|
||||||
|
#version 120
|
||||||
|
|
||||||
uniform float eyerel_x1;
|
uniform float eyerel_x1;
|
||||||
uniform float eyerel_y1;
|
uniform float eyerel_y1;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// -*-C++-*-
|
// -*-C++-*-
|
||||||
|
#version 120
|
||||||
|
|
||||||
// Shader for use with material animations
|
// Shader for use with material animations
|
||||||
varying vec4 diffuse, constantColor, matSpecular;
|
varying vec4 diffuse, constantColor, matSpecular;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// -*-C++-*-
|
// -*-C++-*-
|
||||||
|
#version 120
|
||||||
|
|
||||||
// written by Thorsten Renk, Oct 2011, based on default.frag
|
// written by Thorsten Renk, Oct 2011, based on default.frag
|
||||||
// Ambient term comes in gl_Color.rgb.
|
// Ambient term comes in gl_Color.rgb.
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// -*-C++-*-
|
// -*-C++-*-
|
||||||
|
#version 120
|
||||||
|
|
||||||
// Ambient term comes in gl_Color.rgb.
|
// Ambient term comes in gl_Color.rgb.
|
||||||
varying vec4 diffuse_term;
|
varying vec4 diffuse_term;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// -*-C++-*-
|
// -*-C++-*-
|
||||||
|
#version 120
|
||||||
|
|
||||||
// written by Thorsten Renk, Oct 2015
|
// written by Thorsten Renk, Oct 2015
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// -*-C++-*-
|
// -*-C++-*-
|
||||||
|
#version 120
|
||||||
|
|
||||||
// written by Thorsten Renk, Oct 2015
|
// written by Thorsten Renk, Oct 2015
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#version 120
|
||||||
|
|
||||||
// Night vision effect inspired by http://www.geeks3d.com/20091009/shader-library-night-vision-post-processing-filter-glsl/
|
// Night vision effect inspired by http://www.geeks3d.com/20091009/shader-library-night-vision-post-processing-filter-glsl/
|
||||||
|
|
||||||
uniform sampler2D color_tex;
|
uniform sampler2D color_tex;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#version 120
|
||||||
|
|
||||||
uniform sampler2D baseTexture;
|
uniform sampler2D baseTexture;
|
||||||
varying float fogFactor;
|
varying float fogFactor;
|
||||||
varying vec3 hazeColor;
|
varying vec3 hazeColor;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#version 120
|
||||||
|
|
||||||
uniform sampler2D baseTexture;
|
uniform sampler2D baseTexture;
|
||||||
varying float fogFactor;
|
varying float fogFactor;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// -*-C++-*-
|
// -*-C++-*-
|
||||||
|
#version 120
|
||||||
|
|
||||||
// written by Thorsten Renk, Oct 2011, based on default.frag
|
// written by Thorsten Renk, Oct 2011, based on default.frag
|
||||||
// Ambient term comes in gl_Color.rgb.
|
// Ambient term comes in gl_Color.rgb.
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// -*-C++-*-
|
// -*-C++-*-
|
||||||
|
#version 120
|
||||||
|
|
||||||
// written by Thorsten Renk, Oct 2011, based on default.frag
|
// written by Thorsten Renk, Oct 2011, based on default.frag
|
||||||
// Ambient term comes in gl_Color.rgb.
|
// Ambient term comes in gl_Color.rgb.
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// -*-C++-*-
|
// -*-C++-*-
|
||||||
|
#version 120
|
||||||
|
|
||||||
uniform int display_xsize;
|
uniform int display_xsize;
|
||||||
uniform int display_ysize;
|
uniform int display_ysize;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// -*-C++-*-
|
// -*-C++-*-
|
||||||
|
#version 120
|
||||||
|
|
||||||
// written by Thorsten Renk, Oct 2011, based on default.frag
|
// written by Thorsten Renk, Oct 2011, based on default.frag
|
||||||
// Ambient term comes in gl_Color.rgb.
|
// Ambient term comes in gl_Color.rgb.
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#version 120
|
||||||
|
|
||||||
uniform mat4 fg_ViewMatrix;
|
uniform mat4 fg_ViewMatrix;
|
||||||
uniform sampler2D depth_tex;
|
uniform sampler2D depth_tex;
|
||||||
uniform sampler2D normal_tex;
|
uniform sampler2D normal_tex;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#version 120
|
||||||
|
|
||||||
uniform mat4 fg_ViewMatrix;
|
uniform mat4 fg_ViewMatrix;
|
||||||
uniform sampler2D depth_tex;
|
uniform sampler2D depth_tex;
|
||||||
uniform sampler2D normal_tex;
|
uniform sampler2D normal_tex;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// -*-C++-*-
|
// -*-C++-*-
|
||||||
|
#version 120
|
||||||
|
|
||||||
// written by Thorsten Renk, Oct 2011, based on default.frag
|
// written by Thorsten Renk, Oct 2011, based on default.frag
|
||||||
// Ambient term comes in gl_Color.rgb.
|
// Ambient term comes in gl_Color.rgb.
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// -*-C++-*-
|
// -*-C++-*-
|
||||||
|
#version 120
|
||||||
|
|
||||||
// written by Thorsten Renk, Oct 2011, based on default.frag
|
// written by Thorsten Renk, Oct 2011, based on default.frag
|
||||||
// Ambient term comes in gl_Color.rgb.
|
// Ambient term comes in gl_Color.rgb.
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// -*-C++-*-
|
// -*-C++-*-
|
||||||
|
#version 120
|
||||||
|
|
||||||
// written by Thorsten Renk, Oct 2011, based on default.frag
|
// written by Thorsten Renk, Oct 2011, based on default.frag
|
||||||
// Ambient term comes in gl_Color.rgb.
|
// Ambient term comes in gl_Color.rgb.
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
// -*-C++-*-
|
// -*-C++-*-
|
||||||
|
#version 120
|
||||||
|
|
||||||
uniform sampler2D texture;
|
uniform sampler2D texture;
|
||||||
|
|
||||||
////fog "include" /////
|
////fog "include" /////
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#version 120
|
||||||
|
|
||||||
uniform sampler2D baseTexture;
|
uniform sampler2D baseTexture;
|
||||||
varying float fogFactor;
|
varying float fogFactor;
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
// Texture switching based on face slope and snow level
|
// Texture switching based on face slope and snow level
|
||||||
// based on earlier work by Frederic Bouvier, Tim Moore, and Yves Sablonier.
|
// based on earlier work by Frederic Bouvier, Tim Moore, and Yves Sablonier.
|
||||||
// <20> Emilian Huminiuc 2011
|
// <20> Emilian Huminiuc 2011
|
||||||
|
#version 120
|
||||||
|
|
||||||
varying float RawPosZ;
|
varying float RawPosZ;
|
||||||
varying vec3 WorldPos;
|
varying vec3 WorldPos;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// -*-C++-*-
|
// -*-C++-*-
|
||||||
|
#version 120
|
||||||
|
|
||||||
// written by Thorsten Renk, Oct 2011, based on default.frag
|
// written by Thorsten Renk, Oct 2011, based on default.frag
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// -*-C++-*-
|
// -*-C++-*-
|
||||||
|
#version 120
|
||||||
|
|
||||||
// written by Thorsten Renk, Oct 2011, based on default.frag
|
// written by Thorsten Renk, Oct 2011, based on default.frag
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// -*-C++-*-
|
// -*-C++-*-
|
||||||
|
#version 120
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue