Updated from OpenSceneGraph-Data/shaders/text.frag to address GLSL int to float conversion warning
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user