Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/blender_shader.cpp
| Context not available. | |||||
| image->animated = b_image_node.image_user().use_auto_refresh(); | image->animated = b_image_node.image_user().use_auto_refresh(); | ||||
| image->use_alpha = b_image.use_alpha(); | image->use_alpha = b_image.use_alpha(); | ||||
| char alpha_mode = b_image.alpha_mode(); | |||||
| if (alpha_mode == Image_alpha_mode_PREMUL) { | |||||
| image->alpha_mode = associated; | |||||
| } | |||||
| else { | |||||
| /* Image_alpha_mode_STRAIGHT */ | |||||
| image->alpha_mode = unassociated; | |||||
| } | |||||
| /* TODO: restore */ | /* TODO: restore */ | ||||
| /* TODO(sergey): Does not work properly when we change builtin type. */ | /* TODO(sergey): Does not work properly when we change builtin type. */ | ||||
| Context not available. | |||||
| point_density->builtin_data, | point_density->builtin_data, | ||||
| point_density->interpolation, | point_density->interpolation, | ||||
| EXTENSION_CLIP, | EXTENSION_CLIP, | ||||
| true); | true, | ||||
| auto_detect); | |||||
| } | } | ||||
| node = point_density; | node = point_density; | ||||
| Context not available. | |||||