13 "Transforms points in view space to region space (\"clip space\" or \"normalized device "
16 "Transforms points from object space to view space using the viewport's location and "
19 .description(
"Whether the viewport is using orthographic projection");
30 params.set_output(
"Projection",
data.viewport_winmat);
31 params.set_output(
"View",
data.viewport_viewmat * self_object.object_to_world());
32 params.set_output(
"Is Orthographic", !
data.viewport_is_perspective);
39 ntype.
ui_name =
"Viewport Transform";
40 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)
BMesh const char void * data
void node_register_type(bNodeType &ntype)
void search_link_ops_for_tool_node(GatherLinkSearchOpParams ¶ms)
bool check_tool_context_and_error(GeoNodeExecParams ¶ms)
void geo_node_type_base(blender::bke::bNodeType *ntype, std::string 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