diff options
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/interface')
11 files changed, 77 insertions, 20 deletions
| diff --git a/indra/newview/app_settings/shaders/class1/interface/customalphaV.glsl b/indra/newview/app_settings/shaders/class1/interface/customalphaV.glsl index df67f76ad5..5bbc7deff0 100644 --- a/indra/newview/app_settings/shaders/class1/interface/customalphaV.glsl +++ b/indra/newview/app_settings/shaders/class1/interface/customalphaV.glsl @@ -22,7 +22,9 @@   * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA   * $/LicenseInfo$   */ -  + +uniform mat4 modelview_projection_matrix; +  attribute vec3 position;  attribute vec4 diffuse_color;  attribute vec2 texcoord0; @@ -30,7 +32,7 @@ attribute vec2 texcoord0;  void main()  { -	gl_Position = gl_ModelViewProjectionMatrix * vec4(position.xyz, 1.0); +	gl_Position = modelview_projection_matrix * vec4(position.xyz, 1.0);  	gl_TexCoord[0] = vec4(texcoord0,0,1);  	gl_FrontColor = diffuse_color;  } diff --git a/indra/newview/app_settings/shaders/class1/interface/debugV.glsl b/indra/newview/app_settings/shaders/class1/interface/debugV.glsl index 2f64fdb7bc..cd3d090e52 100644 --- a/indra/newview/app_settings/shaders/class1/interface/debugV.glsl +++ b/indra/newview/app_settings/shaders/class1/interface/debugV.glsl @@ -23,10 +23,12 @@   * $/LicenseInfo$   */ +uniform mat4 modelview_projection_matrix; +  attribute vec3 position;  void main()  { -	gl_Position = gl_ModelViewProjectionMatrix * vec4(position.xyz, 1.0); +	gl_Position = modelview_projection_matrix * vec4(position.xyz, 1.0);  } diff --git a/indra/newview/app_settings/shaders/class1/interface/glowcombineFXAAV.glsl b/indra/newview/app_settings/shaders/class1/interface/glowcombineFXAAV.glsl index f54876135e..bd5dd6046b 100644 --- a/indra/newview/app_settings/shaders/class1/interface/glowcombineFXAAV.glsl +++ b/indra/newview/app_settings/shaders/class1/interface/glowcombineFXAAV.glsl @@ -1,17 +1,37 @@  /**    * @file glowcombineFXAAV.glsl   * - * $LicenseInfo:firstyear=2007&license=viewerlgpl$ +  * $LicenseInfo:firstyear=2007&license=viewerlgpl$ + * Second Life Viewer Source Code + * Copyright (C) 2007, Linden Research, Inc. + *  + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; + * version 2.1 of the License only. + *  + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU + * Lesser General Public License for more details. + *  + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA + *  + * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA   * $/LicenseInfo$   */ -  + +uniform mat4 modelview_projection_matrix; +  attribute vec3 position;  varying vec2 vary_tc;  void main()  { -	vec4 pos = gl_ModelViewProjectionMatrix*vec4(position.xyz, 1.0); +	vec4 pos = modelview_projection_matrix*vec4(position.xyz, 1.0);  	gl_Position = pos;  	vary_tc = pos.xy*0.5+0.5; diff --git a/indra/newview/app_settings/shaders/class1/interface/glowcombineV.glsl b/indra/newview/app_settings/shaders/class1/interface/glowcombineV.glsl index 303535ee31..94edbe5ab1 100644 --- a/indra/newview/app_settings/shaders/class1/interface/glowcombineV.glsl +++ b/indra/newview/app_settings/shaders/class1/interface/glowcombineV.glsl @@ -22,14 +22,16 @@   * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA   * $/LicenseInfo$   */ -  + +uniform mat4 modelview_projection_matrix; +  attribute vec3 position;  attribute vec2 texcoord0;  attribute vec2 texcoord1;  void main()  { -	gl_Position = gl_ModelViewProjectionMatrix * vec4(position.xyz, 1.0); +	gl_Position = modelview_projection_matrix * vec4(position.xyz, 1.0);  	gl_TexCoord[0] = vec4(texcoord0,0,1);  	gl_TexCoord[1] = vec4(texcoord1,0,1);  } diff --git a/indra/newview/app_settings/shaders/class1/interface/highlightV.glsl b/indra/newview/app_settings/shaders/class1/interface/highlightV.glsl index 1d312313a8..6bb5affd93 100644 --- a/indra/newview/app_settings/shaders/class1/interface/highlightV.glsl +++ b/indra/newview/app_settings/shaders/class1/interface/highlightV.glsl @@ -22,14 +22,17 @@   * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA   * $/LicenseInfo$   */ -  + +uniform mat4 texture_matrix0; +uniform mat4 modelview_projection_matrix; +  attribute vec3 position;  attribute vec2 texcoord0;  void main()  {  	//transform vertex -	gl_Position = gl_ModelViewProjectionMatrix * vec4(position.xyz, 1.0); -	gl_TexCoord[0] = gl_TextureMatrix[0] * vec4(texcoord0,0,1); +	gl_Position = modelview_projection_matrix * vec4(position.xyz, 1.0); +	gl_TexCoord[0] = texture_matrix0 * vec4(texcoord0,0,1);  } diff --git a/indra/newview/app_settings/shaders/class1/interface/occlusionV.glsl b/indra/newview/app_settings/shaders/class1/interface/occlusionV.glsl index 62fe4a2ce5..43dcd5dbe2 100644 --- a/indra/newview/app_settings/shaders/class1/interface/occlusionV.glsl +++ b/indra/newview/app_settings/shaders/class1/interface/occlusionV.glsl @@ -23,10 +23,12 @@   * $/LicenseInfo$   */ +uniform mat4 modelview_projection_matrix; +  attribute vec3 position;  void main()  { -	gl_Position = gl_ModelViewProjectionMatrix * vec4(position.xyz, 1.0); +	gl_Position = modelview_projection_matrix * vec4(position.xyz, 1.0);  } diff --git a/indra/newview/app_settings/shaders/class1/interface/onetexturenocolorV.glsl b/indra/newview/app_settings/shaders/class1/interface/onetexturenocolorV.glsl index 7df45e90e6..615412c7a2 100644 --- a/indra/newview/app_settings/shaders/class1/interface/onetexturenocolorV.glsl +++ b/indra/newview/app_settings/shaders/class1/interface/onetexturenocolorV.glsl @@ -2,9 +2,28 @@   * @file onetexturenocolorV.glsl   *   * $LicenseInfo:firstyear=2007&license=viewerlgpl$ + * Second Life Viewer Source Code + * Copyright (C) 2007, Linden Research, Inc. + *  + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; + * version 2.1 of the License only. + *  + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU + * Lesser General Public License for more details. + *  + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA + *  + * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA   * $/LicenseInfo$   */ +uniform mat4 modelview_projection_matrix;  attribute vec3 position;  attribute vec2 texcoord0; @@ -12,7 +31,7 @@ attribute vec2 texcoord0;  void main()  { -	gl_Position = gl_ModelViewProjectionMatrix * vec4(position, 1); +	gl_Position = modelview_projection_matrix * vec4(position, 1);  	gl_TexCoord[0] = vec4(texcoord0,0,1);  } diff --git a/indra/newview/app_settings/shaders/class1/interface/solidcolorV.glsl b/indra/newview/app_settings/shaders/class1/interface/solidcolorV.glsl index be03d19290..45e6a9febc 100644 --- a/indra/newview/app_settings/shaders/class1/interface/solidcolorV.glsl +++ b/indra/newview/app_settings/shaders/class1/interface/solidcolorV.glsl @@ -22,6 +22,8 @@   * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA   * $/LicenseInfo$   */ + +uniform mat4 modelview_projection_matrix;  attribute vec3 position;  attribute vec4 diffuse_color; @@ -29,7 +31,7 @@ attribute vec2 texcoord0;  void main()  { -	gl_Position = gl_ModelViewProjectionMatrix * vec4(position.xyz, 1.0); +	gl_Position = modelview_projection_matrix * vec4(position.xyz, 1.0);  	gl_FrontColor = diffuse_color;  	gl_TexCoord[0] = vec4(texcoord0,0,1);  } diff --git a/indra/newview/app_settings/shaders/class1/interface/splattexturerectV.glsl b/indra/newview/app_settings/shaders/class1/interface/splattexturerectV.glsl index 085970f549..2b471d99e8 100644 --- a/indra/newview/app_settings/shaders/class1/interface/splattexturerectV.glsl +++ b/indra/newview/app_settings/shaders/class1/interface/splattexturerectV.glsl @@ -22,14 +22,16 @@   * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA   * $/LicenseInfo$   */ -  + +uniform mat4 modelview_projection_matrix; +  attribute vec3 position;  attribute vec2 texcoord0;  attribute vec4 diffuse_color;  void main()  { -	gl_Position = gl_ModelViewProjectionMatrix * vec4(position.xyz, 1.0); +	gl_Position = modelview_projection_matrix * vec4(position.xyz, 1.0);  	gl_TexCoord[0] = vec4(texcoord0,0,1);  	gl_FrontColor = diffuse_color;  } diff --git a/indra/newview/app_settings/shaders/class1/interface/twotextureaddV.glsl b/indra/newview/app_settings/shaders/class1/interface/twotextureaddV.glsl index 80c57e7766..2a36feaa21 100644 --- a/indra/newview/app_settings/shaders/class1/interface/twotextureaddV.glsl +++ b/indra/newview/app_settings/shaders/class1/interface/twotextureaddV.glsl @@ -23,6 +23,7 @@   * $/LicenseInfo$   */ +uniform mat4 modelview_projection_matrix;  attribute vec3 position;  attribute vec2 texcoord0; @@ -30,7 +31,7 @@ attribute vec2 texcoord1;  void main()  { -	gl_Position = gl_ModelViewProjectionMatrix * vec4(position.xyz, 1.0); +	gl_Position = modelview_projection_matrix * vec4(position.xyz, 1.0);  	gl_TexCoord[0] = vec4(texcoord0,0,1);  	gl_TexCoord[1] = vec4(texcoord1,0,1);  } diff --git a/indra/newview/app_settings/shaders/class1/interface/uiV.glsl b/indra/newview/app_settings/shaders/class1/interface/uiV.glsl index faef21689e..a9e42a432f 100644 --- a/indra/newview/app_settings/shaders/class1/interface/uiV.glsl +++ b/indra/newview/app_settings/shaders/class1/interface/uiV.glsl @@ -22,7 +22,9 @@   * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA   * $/LicenseInfo$   */ -  + +uniform mat4 texture_matrix0; +uniform mat4 modelview_projection_matrix;  attribute vec3 position;  attribute vec4 diffuse_color; @@ -31,8 +33,8 @@ attribute vec2 texcoord0;  void main()  { -	gl_Position = gl_ModelViewProjectionMatrix * vec4(position, 1); -	gl_TexCoord[0] =  gl_TextureMatrix[0] * vec4(texcoord0,0,1); +	gl_Position = modelview_projection_matrix * vec4(position, 1); +	gl_TexCoord[0] =  texture_matrix0 * vec4(texcoord0,0,1);  	gl_FrontColor = diffuse_color;  } | 
