Fixed OSG_PRECISION_FLOAT usage

This commit is contained in:
Robert Osfield
2017-09-19 17:07:59 +01:00
parent 370ca2b8a3
commit fafa468fea
2 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
char text_greyscale_frag[] = "$OSG_GLSL_VERSION\n"
"$OSG_GLSL_PRECISION_FLOAT\n"
"$OSG_PRECISION_FLOAT\n"
"\n"
"#pragma import_defines( BACKDROP_COLOR, OUTLINE, ALPHA )\n"
"\n"

View File

@@ -1,5 +1,5 @@
char text_sdf_frag[] = "$OSG_GLSL_VERSION\n"
"$OSG_GLSL_PRECISION_FLOAT\n"
"$OSG_PRECISION_FLOAT\n"
"\n"
"#pragma import_defines( BACKDROP_COLOR, OUTLINE )\n"
"\n"
@@ -14,7 +14,7 @@ char text_sdf_frag[] = "$OSG_GLSL_VERSION\n"
" #endif\n"
"#endif\n"
"\n"
"#undef USE_SIGNED_DISTNACE_FIELD\n"
"//#undef USE_SIGNED_DISTNACE_FIELD\n"
"\n"
"#if __VERSION__>=130\n"
" #define TEXTURE texture\n"