[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [37418] branches/soc-2011-onion/source/ blender/gpu/intern/gpu_buffers.c: changed color of masked/ unmasked areas to match how mesh looks with no mask layers
Jason Wilkins
Jason.A.Wilkins at gmail.com
Sat Jun 11 21:43:55 CEST 2011
Revision: 37418
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37418
Author: jwilkins
Date: 2011-06-11 19:43:54 +0000 (Sat, 11 Jun 2011)
Log Message:
-----------
changed color of masked/unmasked areas to match how mesh looks with no mask layers
Modified Paths:
--------------
branches/soc-2011-onion/source/blender/gpu/intern/gpu_buffers.c
Modified: branches/soc-2011-onion/source/blender/gpu/intern/gpu_buffers.c
===================================================================
--- branches/soc-2011-onion/source/blender/gpu/intern/gpu_buffers.c 2011-06-11 19:36:14 UTC (rev 37417)
+++ branches/soc-2011-onion/source/blender/gpu/intern/gpu_buffers.c 2011-06-11 19:43:54 UTC (rev 37418)
@@ -460,9 +460,9 @@
static void mask_to_gpu_colors(unsigned char out[3], float mask_strength)
{
CLAMP(mask_strength, 0, 1);
- out[0] = (unsigned char)((1.0f-mask_strength)*128.0f + mask_strength*1.00*128.0f);
- out[1] = (unsigned char)((1.0f-mask_strength)*128.0f + mask_strength*0.39*128.0f);
- out[2] = (unsigned char)((1.0f-mask_strength)*128.0f + mask_strength*0.39*128.0f);
+ out[0] = (unsigned char)((1.0f-mask_strength)*128.0f + mask_strength*1.00*128.0f) + 64;
+ out[1] = (unsigned char)((1.0f-mask_strength)*128.0f + mask_strength*0.39*128.0f) + 64;
+ out[2] = (unsigned char)((1.0f-mask_strength)*128.0f + mask_strength*0.39*128.0f) + 64;
}
/* Create or destroy the color buffer as needed, return a pointer to the color buffer data.
More information about the Bf-blender-cvs
mailing list