From 8f658fbc3212dd1f03c99e5d92374e2676f6f1f9 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 24 Oct 2017 15:14:23 +0100 Subject: [PATCH] Updated from OpenSceneGraph-Data/shaders/text.frag to address GLSL int to float conversion warning --- src/osgText/shaders/text_frag.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgText/shaders/text_frag.cpp b/src/osgText/shaders/text_frag.cpp index 09b68444b..03661dd92 100644 --- a/src/osgText/shaders/text_frag.cpp +++ b/src/osgText/shaders/text_frag.cpp @@ -186,7 +186,7 @@ char text_frag[] = "$OSG_GLSL_VERSION\n" " vec2 origin = src_texCoord-vec2(delta_tc*0.5, delta_tc*0.5);\n" "\n" " float numSamples = 3.0;\n" - " delta_tc = delta_tc/(numSamples-1);\n" + " delta_tc = delta_tc/(numSamples-1.0);\n" "\n" " float background_alpha = 1.0;\n" "\n"