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:
Diffstat (limited to 'source/blender/draw/engines/gpencil/shaders/gpencil_blend_frag.glsl')
-rw-r--r--source/blender/draw/engines/gpencil/shaders/gpencil_blend_frag.glsl6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/draw/engines/gpencil/shaders/gpencil_blend_frag.glsl b/source/blender/draw/engines/gpencil/shaders/gpencil_blend_frag.glsl
index f5696116eea..fdaad9890a0 100644
--- a/source/blender/draw/engines/gpencil/shaders/gpencil_blend_frag.glsl
+++ b/source/blender/draw/engines/gpencil/shaders/gpencil_blend_frag.glsl
@@ -79,10 +79,12 @@ vec4 get_blend_color(int mode, vec4 src_color, vec4 blend_color)
float linearrgb_to_srgb(float c)
{
- if (c < 0.0031308)
+ if (c < 0.0031308) {
return (c < 0.0) ? 0.0 : c * 12.92;
- else
+ }
+ else {
return 1.055 * pow(c, 1.0 / 2.4) - 0.055;
+ }
}
vec4 tone(vec4 stroke_color)