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/imbuf')
-rw-r--r--source/blender/imbuf/intern/divers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/imbuf/intern/divers.c b/source/blender/imbuf/intern/divers.c
index aa49453d68c..07bbec9e15c 100644
--- a/source/blender/imbuf/intern/divers.c
+++ b/source/blender/imbuf/intern/divers.c
@@ -75,7 +75,7 @@ MINLINE void ushort_to_byte_dither_v4(
uchar b[4], const unsigned short us[4], DitherContext *di, float s, float t)
{
#define USHORTTOFLOAT(val) ((float)val / 65535.0f)
- float dither_value = dither_random_value(s, t) * 0.005f * di->dither;
+ float dither_value = dither_random_value(s, t) * 0.0033f * di->dither;
b[0] = ftochar(dither_value + USHORTTOFLOAT(us[0]));
b[1] = ftochar(dither_value + USHORTTOFLOAT(us[1]));
@@ -88,7 +88,7 @@ MINLINE void ushort_to_byte_dither_v4(
MINLINE void float_to_byte_dither_v4(
uchar b[4], const float f[4], DitherContext *di, float s, float t)
{
- float dither_value = dither_random_value(s, t) * 0.005f * di->dither;
+ float dither_value = dither_random_value(s, t) * 0.0033f * di->dither;
b[0] = ftochar(dither_value + f[0]);
b[1] = ftochar(dither_value + f[1]);