13 "Transforms points in view space to region space (\"clip space\" or \"normalized device "
17 "Transforms points from object space to view space using the viewport's location and "
20 .description(
"Whether the viewport is using orthographic projection");
32 params.
set_output(
"View"_ustr,
data.viewport_viewmat * self_object.object_to_world());
33 params.
set_output(
"Is Orthographic"_ustr, !
data.viewport_is_perspective);
41 ntype.
ui_name =
"Viewport Transform";
42 ntype.
ui_description =
"Retrieve the view direction and location of the 3D viewport";
#define GEO_NODE_TOOL_VIEWPORT_TRANSFORM
#define NOD_REGISTER_NODE(REGISTER_FUNC)
GeoNodesUserData * user_data() const
void set_output(const UString identifier, T &&value)
const Object * self_object() const
void node_register_type(bNodeType &ntype)
void search_link_ops_for_tool_node(GatherLinkSearchOpParams ¶ms)
bool check_tool_context_and_error(GeoNodeExecParams ¶ms)
BMesh const char void * data
void geo_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
const char * enum_name_legacy
NodeGatherSocketLinkOperationsFunction gather_link_search_ops
NodeDeclareFunction declare
GeoNodesOperatorData * operator_data
const GeoNodesCallData * call_data