diff options
author | Jörg Walter <info@syntax-k.de> | 2018-03-29 22:07:51 +0300 |
---|---|---|
committer | Jörg Walter <info@syntax-k.de> | 2018-03-29 22:07:51 +0300 |
commit | fa81ebeece3c4a89d8de0c86ab0931721c172fce (patch) | |
tree | 5ee2b10265ef80a83357577088021f3cfed0b363 /plugins/XRayView | |
parent | f0f768cc74b2210fbddaf09b57a56e7662390b65 (diff) |
GLES shader fixes
Diffstat (limited to 'plugins/XRayView')
-rw-r--r-- | plugins/XRayView/xray_composite.shader | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/XRayView/xray_composite.shader b/plugins/XRayView/xray_composite.shader index 0a8f6364d7..7ea5287f96 100644 --- a/plugins/XRayView/xray_composite.shader +++ b/plugins/XRayView/xray_composite.shader @@ -13,6 +13,13 @@ vertex = } fragment = + #ifdef GL_ES + #ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + #else + precision mediump float; + #endif // GL_FRAGMENT_PRECISION_HIGH + #endif // GL_ES uniform sampler2D u_layer0; //Default pass. uniform sampler2D u_layer1; //Selection pass. uniform sampler2D u_layer2; //X-ray pass. |