Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_raycast.cc
| Show All 35 Lines | b.add_input<decl::Vector>(N_("Ray Direction")) | ||||
| .default_value({0.0f, 0.0f, -1.0f}) | .default_value({0.0f, 0.0f, -1.0f}) | ||||
| .supports_field(); | .supports_field(); | ||||
| b.add_input<decl::Float>(N_("Ray Length")) | b.add_input<decl::Float>(N_("Ray Length")) | ||||
| .default_value(100.0f) | .default_value(100.0f) | ||||
| .min(0.0f) | .min(0.0f) | ||||
| .subtype(PROP_DISTANCE) | .subtype(PROP_DISTANCE) | ||||
| .supports_field(); | .supports_field(); | ||||
| b.add_output<decl::Bool>(N_("Is Hit")).dependent_field(); | b.add_output<decl::Bool>(N_("Is Hit")).dependent_field({6, 7, 8}); | ||||
| b.add_output<decl::Vector>(N_("Hit Position")).dependent_field(); | b.add_output<decl::Vector>(N_("Hit Position")).dependent_field({6, 7, 8}); | ||||
| b.add_output<decl::Vector>(N_("Hit Normal")).dependent_field(); | b.add_output<decl::Vector>(N_("Hit Normal")).dependent_field({6, 7, 8}); | ||||
| b.add_output<decl::Float>(N_("Hit Distance")).dependent_field(); | b.add_output<decl::Float>(N_("Hit Distance")).dependent_field({6, 7, 8}); | ||||
| b.add_output<decl::Vector>(N_("Attribute")).dependent_field({1, 2, 3, 4, 5, 6}); | b.add_output<decl::Vector>(N_("Attribute")).dependent_field({6, 7, 8}); | ||||
| b.add_output<decl::Float>(N_("Attribute"), "Attribute_001").dependent_field({1, 2, 3, 4, 5, 6}); | b.add_output<decl::Float>(N_("Attribute"), "Attribute_001").dependent_field({6, 7, 8}); | ||||
| b.add_output<decl::Color>(N_("Attribute"), "Attribute_002").dependent_field({1, 2, 3, 4, 5, 6}); | b.add_output<decl::Color>(N_("Attribute"), "Attribute_002").dependent_field({6, 7, 8}); | ||||
| b.add_output<decl::Bool>(N_("Attribute"), "Attribute_003").dependent_field({1, 2, 3, 4, 5, 6}); | b.add_output<decl::Bool>(N_("Attribute"), "Attribute_003").dependent_field({6, 7, 8}); | ||||
| b.add_output<decl::Int>(N_("Attribute"), "Attribute_004").dependent_field({1, 2, 3, 4, 5, 6}); | b.add_output<decl::Int>(N_("Attribute"), "Attribute_004").dependent_field({6, 7, 8}); | ||||
| } | } | ||||
| static void node_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr) | static void node_layout(uiLayout *layout, bContext * /*C*/, PointerRNA *ptr) | ||||
| { | { | ||||
| uiItemR(layout, ptr, "data_type", 0, "", ICON_NONE); | uiItemR(layout, ptr, "data_type", 0, "", ICON_NONE); | ||||
| uiItemR(layout, ptr, "mapping", 0, "", ICON_NONE); | uiItemR(layout, ptr, "mapping", 0, "", ICON_NONE); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 386 Lines • Show Last 20 Lines | |||||