Fixed a compilation issue for a shader program.

This commit is contained in:
Matthias Koefferlein 2020-08-31 00:45:49 +02:00
parent 1dc9d11745
commit 5c6d3775cb
1 changed files with 1 additions and 1 deletions

View File

@ -752,7 +752,7 @@ D25ViewWidget::initializeGL ()
"uniform highp float mist_factor;\n"
"uniform highp float mist_add;\n"
"\n"
"vec4 color_by_z(lowp vec4 c, highp float z) {\n"
"lowp vec4 color_by_z(lowp vec4 c, highp float z) {\n"
" highp float mist_rgb = c.g * mist_factor + mist_add;\n"
" lowp vec4 mist_color = vec4(mist_rgb, mist_rgb, mist_rgb, 1.0);\n"
" highp float d = 0.12;\n" // d + dd/2 = 0.15 = 1/?