Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/blender_shader.cpp
| Show First 20 Lines • Show All 543 Lines • ▼ Show 20 Lines | if(b_image) { | ||||
| image->filename = image_user_file_path(b_image_node.image_user(), b_image, b_scene.frame_current()); | image->filename = image_user_file_path(b_image_node.image_user(), b_image, b_scene.frame_current()); | ||||
| image->builtin_data = NULL; | image->builtin_data = NULL; | ||||
| } | } | ||||
| image->animated = b_image_node.image_user().use_auto_refresh(); | image->animated = b_image_node.image_user().use_auto_refresh(); | ||||
| } | } | ||||
| image->color_space = ImageTextureNode::color_space_enum[(int)b_image_node.color_space()]; | image->color_space = ImageTextureNode::color_space_enum[(int)b_image_node.color_space()]; | ||||
| image->projection = ImageTextureNode::projection_enum[(int)b_image_node.projection()]; | image->projection = ImageTextureNode::projection_enum[(int)b_image_node.projection()]; | ||||
| image->interpolation = (InterpolationType)b_image_node.interpolation(); | |||||
| image->projection_blend = b_image_node.projection_blend(); | image->projection_blend = b_image_node.projection_blend(); | ||||
| get_tex_mapping(&image->tex_mapping, b_image_node.texture_mapping()); | get_tex_mapping(&image->tex_mapping, b_image_node.texture_mapping()); | ||||
| node = image; | node = image; | ||||
| } | } | ||||
| else if (b_node.is_a(&RNA_ShaderNodeTexEnvironment)) { | else if (b_node.is_a(&RNA_ShaderNodeTexEnvironment)) { | ||||
| BL::ShaderNodeTexEnvironment b_env_node(b_node); | BL::ShaderNodeTexEnvironment b_env_node(b_node); | ||||
| BL::Image b_image(b_env_node.image()); | BL::Image b_image(b_env_node.image()); | ||||
| EnvironmentTextureNode *env = new EnvironmentTextureNode(); | EnvironmentTextureNode *env = new EnvironmentTextureNode(); | ||||
| ▲ Show 20 Lines • Show All 552 Lines • Show Last 20 Lines | |||||