summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/objects/previewPhysicsF.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/objects/previewPhysicsF.glsl')
-rw-r--r--indra/newview/app_settings/shaders/class1/objects/previewPhysicsF.glsl8
1 files changed, 2 insertions, 6 deletions
diff --git a/indra/newview/app_settings/shaders/class1/objects/previewPhysicsF.glsl b/indra/newview/app_settings/shaders/class1/objects/previewPhysicsF.glsl
index b56fc97a85..e3e71202ae 100644
--- a/indra/newview/app_settings/shaders/class1/objects/previewPhysicsF.glsl
+++ b/indra/newview/app_settings/shaders/class1/objects/previewPhysicsF.glsl
@@ -23,20 +23,16 @@
* $/LicenseInfo$
*/
-#ifdef DEFINE_GL_FRAGCOLOR
out vec4 frag_color;
-#else
-#define frag_color gl_FragColor
-#endif
uniform sampler2D diffuseMap;
uniform vec4 color;
-VARYING vec2 vary_texcoord0;
+in vec2 vary_texcoord0;
//====================================================================================================
void main()
{
- frag_color = max(texture2D(diffuseMap,vary_texcoord0.xy) * color, vec4(0));
+ frag_color = max(texture(diffuseMap,vary_texcoord0.xy) * color, vec4(0));
}