Blender Git Loki

Git Commits -> Revision f71cf99

Revision f71cf99 by Campbell Barton (master)
June 1, 2021, 02:49 (GMT)
GPU: add 2D projection function

When projecting into screen space Z value isn't always needed.
Add 2D projection functions, renaming them to avoid accidents
happening again.

- Add GPU_matrix_project_2fv
- Add ED_view3d_project_v2
- Rename ED_view3d_project to ED_view3d_project_v3
- Use the 2D versions of these functions when the Z value isn't used.

Commit Details:

Full Hash: f71cf996165a81030a92e3e26610bf2e6fa2fc44
Parent Commit: c145cb7
Lines Changed: +108, -70

15 Modified Paths:

/source/blender/editors/curve/editcurve_paint.c (+1, -1) (Diff)
/source/blender/editors/include/ED_view3d.h (+11, -6) (Diff)
/source/blender/editors/mesh/editmesh_knife.c (+3, -3) (Diff)
/source/blender/editors/object/object_remesh.c (+2, -2) (Diff)
/source/blender/editors/object/object_transform.c (+2, -2) (Diff)
/source/blender/editors/physics/particle_edit.c (+1, -1) (Diff)
/source/blender/editors/sculpt_paint/paint_cursor.c (+1, -1) (Diff)
/source/blender/editors/sculpt_paint/paint_stroke.c (+4, -4) (Diff)
/source/blender/editors/space_view3d/view3d_edit.c (+4, -3) (Diff)
/source/blender/editors/space_view3d/view3d_gizmo_preselect_type.c (+2, -2) (Diff)
/source/blender/editors/space_view3d/view3d_project.c (+11, -4) (Diff)
/source/blender/editors/space_view3d/view3d_utils.c (+10, -10) (Diff)
/source/blender/gpu/GPU_matrix.h (+21, -15) (Diff)
/source/blender/gpu/intern/gpu_matrix.cc (+33, -14) (Diff)
/source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c (+2, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021