Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_image_texture.cc
| Show All 30 Lines | |||||
| #include "UI_interface.h" | #include "UI_interface.h" | ||||
| #include "UI_resources.h" | #include "UI_resources.h" | ||||
| namespace blender::nodes { | namespace blender::nodes { | ||||
| static void geo_node_image_texture_declare(NodeDeclarationBuilder &b) | static void geo_node_image_texture_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.add_input<decl::Image>("Image").hide_label(); | b.add_input<decl::Image>(N_("Image")).hide_label(); | ||||
| b.add_input<decl::Vector>("Vector").implicit_field().description( | b.add_input<decl::Vector>(N_("Vector")) | ||||
| "Texture coordinates from 0 to 1"); | .implicit_field() | ||||
| b.add_input<decl::Int>("Frame").min(0).max(MAXFRAMEF); | .description(("Texture coordinates from 0 to 1")); | ||||
| b.add_output<decl::Color>("Color").no_muted_links().dependent_field(); | b.add_input<decl::Int>(N_("Frame")).min(0).max(MAXFRAMEF); | ||||
| b.add_output<decl::Float>("Alpha").no_muted_links().dependent_field(); | b.add_output<decl::Color>(N_("Color")).no_muted_links().dependent_field(); | ||||
| b.add_output<decl::Float>(N_("Alpha")).no_muted_links().dependent_field(); | |||||
| } | } | ||||
| static void geo_node_image_texture_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | static void geo_node_image_texture_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr) | ||||
| { | { | ||||
| uiItemR(layout, ptr, "interpolation", UI_ITEM_R_SPLIT_EMPTY_NAME, "", ICON_NONE); | uiItemR(layout, ptr, "interpolation", UI_ITEM_R_SPLIT_EMPTY_NAME, "", ICON_NONE); | ||||
| uiItemR(layout, ptr, "extension", UI_ITEM_R_SPLIT_EMPTY_NAME, "", ICON_NONE); | uiItemR(layout, ptr, "extension", UI_ITEM_R_SPLIT_EMPTY_NAME, "", ICON_NONE); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 376 Lines • Show Last 20 Lines | |||||