Updated from OpenSceneGraph-Data/shaders/text.frag to address GLSL int to float conversion warning

This commit is contained in:
Robert Osfield
2017-10-24 15:14:23 +01:00
parent 9c9439ef73
commit 8f658fbc32

View File

@@ -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"