Geometry Nodes: Add Viewport Transform node #118680
|
@ -25,8 +25,8 @@ static void node_geo_exec(GeoNodeExecParams params)
|
|||
}
|
||||
const Object &self_object = *params.self_object();
|
||||
const RegionView3D &rv3d = *params.user_data()->call_data->operator_data->rv3d;
|
||||
HooglyBoogly marked this conversation as resolved
Outdated
|
||||
params.set_output("View", float4x4(rv3d.viewmat) * self_object.object_to_world());
|
||||
params.set_output("Projection", float4x4(rv3d.winmat) * self_object.object_to_world());
|
||||
params.set_output("View", float4x4(rv3d.viewmat) * self_object.object_to_world());
|
||||
}
|
||||
|
||||
static void node_register()
|
||||
|
|
Loading…
Reference in New Issue
Node group operators should work even when there is no 3D view.