Allow requesting medium default float precision for GLSL ES
Will only work for real GLSL ES targets (version such as 100 es, 300 es,
etc.). By default a precision highp float is added to GLSL ES fragment
shaders. Have a flag that can be set to change this to mediump.
Usable via:
- QShaderBaker (the as of now still undocumented setGlslOptions())
- qsb, by passing --mediump
- CMake, by specifying MEDIUMP in qt_add_shaders()
[ChangeLog] Added the ability for request medium precision for floats in
the generated GLSL ES fragment shaders.
Change-Id: Ie0bc9ad9cd98daa3c1ed57396a7d43234ef5cd09
Reviewed-by: Andy Nichols <andy.nichols@qt.io>