summaryrefslogtreecommitdiffstats
path: root/src/Runtime/res/effectlib/flakeNoiseBumpTexture.glsllib
diff options
context:
space:
mode:
authorMäättä Antti <antti.maatta@qt.io>2017-11-30 12:41:44 +0200
committerAntti Määttä <antti.maatta@qt.io>2018-01-10 12:41:04 +0000
commita15e4a54f78e330c613a2e63d8004169c05d94be (patch)
tree5f3f58b9a0cc2a1dd547ccc3276f28c49fa7c9cf /src/Runtime/res/effectlib/flakeNoiseBumpTexture.glsllib
parent16185339fc737bfabb415265cdc9beef7146407e (diff)
Improve custom material GLES2 support
Implement light shader property setting for custom materials when constant buffers are not supported. Remove floating point .f from glsllib. Task-number: QT3DS-36 Change-Id: I30df0ef8841daaa166910c2384613a1c9f4e6b46 Reviewed-by: Janne Koskinen <janne.p.koskinen@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'src/Runtime/res/effectlib/flakeNoiseBumpTexture.glsllib')
-rw-r--r--src/Runtime/res/effectlib/flakeNoiseBumpTexture.glsllib2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Runtime/res/effectlib/flakeNoiseBumpTexture.glsllib b/src/Runtime/res/effectlib/flakeNoiseBumpTexture.glsllib
index 6bd5f7e4..e8e427ce 100644
--- a/src/Runtime/res/effectlib/flakeNoiseBumpTexture.glsllib
+++ b/src/Runtime/res/effectlib/flakeNoiseBumpTexture.glsllib
@@ -34,7 +34,7 @@ vec3 flakeNoiseBumpTexture( in texture_coordinate_info uvw, in float scale, in f
vec3 grad = miNoise( tex ).xyz;
// displace coordinate according to noise value
- tex += 2.0f * grad;
+ tex += 2.0 * grad;
// then use only integer coordinates, to make flakes transients harder and not wobbly
grad = miNoise( round( tex ) ).xyz;