diff options
author | Kevin Ottens <kevin.ottens@kdab.com> | 2017-08-03 17:38:48 +0200 |
---|---|---|
committer | Kevin Ottens <kevin.ottens@kdab.com> | 2017-09-27 18:11:20 +0000 |
commit | 296aa2ee18c345ace3ddc424c1d65e62dea810bf (patch) | |
tree | 7b010df12e4cc2d7736b460c91ba4e279f3089b7 | |
parent | d7af4cc6bafa6c8c4693e01c6baade9fe2dffa79 (diff) |
Since the ES2 includes use FP make sure it is defined
Change-Id: Ibb735878c6c6b7f14eb26a0f98c200045b4979b6
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
-rw-r--r-- | src/extras/shaders/es2/coordinatesystems.inc | 2 | ||||
-rw-r--r-- | src/extras/shaders/es2/light.inc.frag | 2 | ||||
-rw-r--r-- | src/extras/shaders/es2/light.inc.frag100 | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/src/extras/shaders/es2/coordinatesystems.inc b/src/extras/shaders/es2/coordinatesystems.inc index fad0040c7..5f6ee40f5 100644 --- a/src/extras/shaders/es2/coordinatesystems.inc +++ b/src/extras/shaders/es2/coordinatesystems.inc @@ -48,6 +48,8 @@ ** ****************************************************************************/ +#define FP highp + FP mat3 transpose(const in FP mat3 inputMatrix) { FP vec3 i0 = inputMatrix[0]; diff --git a/src/extras/shaders/es2/light.inc.frag b/src/extras/shaders/es2/light.inc.frag index 9d29648bd..167ff306e 100644 --- a/src/extras/shaders/es2/light.inc.frag +++ b/src/extras/shaders/es2/light.inc.frag @@ -1,3 +1,5 @@ +#define FP highp + const int MAX_LIGHTS = 8; const int TYPE_POINT = 0; const int TYPE_DIRECTIONAL = 1; diff --git a/src/extras/shaders/es2/light.inc.frag100 b/src/extras/shaders/es2/light.inc.frag100 index adbcaa2a0..8680ee423 100644 --- a/src/extras/shaders/es2/light.inc.frag100 +++ b/src/extras/shaders/es2/light.inc.frag100 @@ -1,3 +1,5 @@ +#define FP highp + const int MAX_LIGHTS = 2; // RPi: cannot use more than two as we run out of uniforms const int TYPE_POINT = 0; const int TYPE_DIRECTIONAL = 1; |