code cleanup: color/bw conversion - use BLI color function.

change modifier to use the average of the RGB since perceptual conversion isn't really needed for modifiers.
This commit is contained in:
2012-05-09 10:48:24 +00:00
parent a2ed2b36f3
commit 385e5eb92e
7 changed files with 61 additions and 80 deletions

View File

@@ -54,8 +54,6 @@
&texres->tr, &texres->tg, &texres->tb); \
} \
#define RGBTOBW(r,g,b) ( r*0.35f + g*0.45f + b*0.2f ) /* keep this in sync with gpu_shader_material.glsl:rgbtobw */
struct HaloRen;
struct ShadeInput;
struct TexResult;