Geometry Nodes: Add Viewport Transform node #118680

Merged
Hans Goudey merged 22 commits from HooglyBoogly/blender:geometry-nodes-viewport-transform into main 2024-04-26 19:47:31 +02:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit c34b972d83 - Show all commits

View File

@ -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

Node group operators should work even when there is no 3D view.

Node group operators should work even when there is no 3D view.
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()