diff options
| author | Dave Parks <davep@lindenlab.com> | 2011-11-02 11:46:18 -0500 |
|---|---|---|
| committer | Dave Parks <davep@lindenlab.com> | 2011-11-02 11:46:18 -0500 |
| commit | 55f69de90c9b32c7fa25f16ec7d1f41064eff614 (patch) | |
| tree | 054b0d99490cc6600b3be0e3cb2aaf7918f3fe50 /indra/newview/app_settings/shaders/class1/deferred/impostorF.glsl | |
| parent | 8f47f2222c207938c8fc55158a6fff64ccf1e781 (diff) | |
| parent | 1bea08335b6c2fa31f414db2fe7316a118b2ec18 (diff) | |
merge
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred/impostorF.glsl')
| -rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/impostorF.glsl | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/impostorF.glsl b/indra/newview/app_settings/shaders/class1/deferred/impostorF.glsl index 7152e13946..5decddebbb 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/impostorF.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/impostorF.glsl @@ -22,7 +22,11 @@ * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA * $/LicenseInfo$ */ - + +#ifdef DEFINE_GL_FRAGCOLOR +out vec4 gl_FragData[3]; +#endif + uniform float minimum_alpha; uniform float maximum_alpha; @@ -31,9 +35,11 @@ uniform sampler2D diffuseMap; uniform sampler2D normalMap; uniform sampler2D specularMap; +VARYING vec2 vary_texcoord0; + void main() { - vec4 col = texture2D(diffuseMap, gl_TexCoord[0].xy); + vec4 col = texture2D(diffuseMap, vary_texcoord0.xy); if (col.a < minimum_alpha || col.a > maximum_alpha) { @@ -41,6 +47,6 @@ void main() } gl_FragData[0] = vec4(col.rgb, col.a * 0.005); - gl_FragData[1] = texture2D(specularMap, gl_TexCoord[0].xy); - gl_FragData[2] = vec4(texture2D(normalMap, gl_TexCoord[0].xy).xyz, 0.0); + gl_FragData[1] = texture2D(specularMap, vary_texcoord0.xy); + gl_FragData[2] = vec4(texture2D(normalMap, vary_texcoord0.xy).xyz, 0.0); } |
