Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2020-03-10 10:58:25 +0300
committerAntonio Vazquez <blendergit@gmail.com>2020-03-10 10:58:25 +0300
commit1aa7c4c28a068e15245f1323a8cff53694a3b163 (patch)
tree2d595f676abb6b369382c84a497bb300edb2620d /source/blender/draw
parent811569dc11deba7ccf0570dd8d6235482de3626c (diff)
GPencil: Cleanup float indicator
Diffstat (limited to 'source/blender/draw')
-rw-r--r--source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl b/source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl
index b8b60a8f0c9..cba5a1f80af 100644
--- a/source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl
+++ b/source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl
@@ -551,13 +551,13 @@ void fill_vertex()
/* Decode fill opacity. */
vec4 fcol_decode = vec4(fcol1.rgb, floor(fcol1.a / 10.0));
float fill_opacity = fcol1.a - (fcol_decode.a * 10);
- fcol_decode.a /= 10000.0f;
+ fcol_decode.a /= 10000.0;
/* Apply opacity. */
fill_col.a *= fill_opacity;
/* If factor is > 1 force opacity. */
if (fill_opacity > 1.0) {
- fill_col.a += fill_opacity - 1.0f;
+ fill_col.a += fill_opacity - 1.0;
}
fill_col.a = clamp(fill_col.a, 0.0, 1.0);