Changeset View
Changeset View
Standalone View
Standalone View
source/blender/render/intern/source/render_texture.c
| Context not available. | |||||
| /* texture output */ | /* texture output */ | ||||
| if (rgb && (mtex->texflag & MTEX_RGBTOINT)) { | if (rgb && (mtex->texflag & MTEX_RGBTOINT)) { | ||||
| texres.tin = rgb_to_bw(&texres.tr); | texres.tin = IMB_colormanagement_get_luminance(&texres.tr); | ||||
| rgb= 0; | rgb= 0; | ||||
| } | } | ||||
| if (mtex->texflag & MTEX_NEGATIVE) { | if (mtex->texflag & MTEX_NEGATIVE) { | ||||
| Context not available. | |||||
| texres.tin = texres.ta; | texres.tin = texres.ta; | ||||
| } | } | ||||
| else { | else { | ||||
| texres.tin = rgb_to_bw(&texres.tr); | texres.tin = IMB_colormanagement_get_luminance(&texres.tr); | ||||
| } | } | ||||
| } | } | ||||
| Context not available. | |||||
| /* texture output */ | /* texture output */ | ||||
| if (rgb && (mtex->texflag & MTEX_RGBTOINT)) { | if (rgb && (mtex->texflag & MTEX_RGBTOINT)) { | ||||
| texres.tin = rgb_to_bw(&texres.tr); | texres.tin = IMB_colormanagement_get_luminance(&texres.tr); | ||||
| rgb= 0; | rgb= 0; | ||||
| } | } | ||||
| if (mtex->texflag & MTEX_NEGATIVE) { | if (mtex->texflag & MTEX_NEGATIVE) { | ||||
| Context not available. | |||||
| } | } | ||||
| } | } | ||||
| if (mtex->mapto & WOMAP_BLEND) { | if (mtex->mapto & WOMAP_BLEND) { | ||||
| if (rgb) texres.tin = rgb_to_bw(&texres.tr); | if (rgb) texres.tin = IMB_colormanagement_get_luminance(&texres.tr); | ||||
| *blend= texture_value_blend(mtex->def_var, *blend, texres.tin, mtex->blendfac, mtex->blendtype); | *blend= texture_value_blend(mtex->def_var, *blend, texres.tin, mtex->blendfac, mtex->blendtype); | ||||
| } | } | ||||
| Context not available. | |||||
| /* texture output */ | /* texture output */ | ||||
| if (rgb && (mtex->texflag & MTEX_RGBTOINT)) { | if (rgb && (mtex->texflag & MTEX_RGBTOINT)) { | ||||
| texres.tin = rgb_to_bw(&texres.tr); | texres.tin = IMB_colormanagement_get_luminance(&texres.tr); | ||||
| rgb= 0; | rgb= 0; | ||||
| } | } | ||||
| if (mtex->texflag & MTEX_NEGATIVE) { | if (mtex->texflag & MTEX_NEGATIVE) { | ||||
| Context not available. | |||||
| rgb = multitex(tex, texvec, dxt, dyt, 0, &texr, thread, mtex->which_output, pool, skip_load_image); | rgb = multitex(tex, texvec, dxt, dyt, 0, &texr, thread, mtex->which_output, pool, skip_load_image); | ||||
| if (rgb) { | if (rgb) { | ||||
| texr.tin = rgb_to_bw(&texr.tr); | texr.tin = IMB_colormanagement_get_luminance(&texr.tr); | ||||
| } | } | ||||
| else { | else { | ||||
| texr.tr= mtex->r; | texr.tr= mtex->r; | ||||
| Context not available. | |||||