Page MenuHome

fix_compositor_color_to_value.patch

Authored By
Shinsuke Irie (irie)
Nov 13 2013, 4:18 PM
Size
1 KB
Subscribers
None

fix_compositor_color_to_value.patch

Index: source/blender/compositor/operations/COM_ConvertColorToBWOperation.cpp
===================================================================
--- source/blender/compositor/operations/COM_ConvertColorToBWOperation.cpp (revision 46796)
+++ source/blender/compositor/operations/COM_ConvertColorToBWOperation.cpp (working copy)
@@ -38,7 +38,7 @@
{
float inputColor[4];
inputOperation->read(&inputColor[0], x, y, sampler, inputBuffers);
- outputValue[0] = (inputColor[0]*0.35f + inputColor[1]*0.45f + inputColor[2]*0.2f)*inputColor[3];
+ outputValue[0] = inputColor[0]*0.35f + inputColor[1]*0.45f + inputColor[2]*0.2f;
}
void ConvertColorToBWOperation::deinitExecution()
Index: source/blender/compositor/operations/COM_ConvertColourToValueProg.cpp
===================================================================
--- source/blender/compositor/operations/COM_ConvertColourToValueProg.cpp (revision 46796)
+++ source/blender/compositor/operations/COM_ConvertColourToValueProg.cpp (working copy)
@@ -38,7 +38,7 @@
{
float inputColor[4];
inputOperation->read(&inputColor[0], x, y, sampler, inputBuffers);
- outputValue[0] = ((inputColor[0] + inputColor[1] + inputColor[2])/3.0f)*inputColor[3];
+ outputValue[0] = (inputColor[0] + inputColor[1] + inputColor[2])/3.0f;
}
void ConvertColourToValueProg::deinitExecution()

File Metadata

Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
0e/fc/e78055ecf325975b071e148add1a

Event Timeline