Blender Git Commit Log

Git Commits -> Revision b5bc215

Revision b5bc215 by Clément Foucault (master)
January 18, 2019, 15:30 (GMT)
View 3D Grid: Improve precision and reduce code complexity

Instead of doing manual ray-plane intersection we use normalized positions
of the grid mesh and apply scaling after interpolation so that we keep
good precision even at really far distances.

Precision is now two order of magnitude better and does not produce the
same kind of artifact at lower clip start values.

This commit also cleanup the implementation.

Fixes T58918 Grid not appearing correctly at low clip start in 2.8

Commit Details:

Full Hash: b5bc2158a07140e5463e209839bcf36d2ce2cddc
Parent Commit: bb4c760
Lines Changed: +31, -104

3 Modified Paths:

/source/blender/draw/modes/object_mode.c (+10, -40) (Diff)
/source/blender/draw/modes/shaders/object_grid_frag.glsl (+9, -48) (Diff)
/source/blender/draw/modes/shaders/object_grid_vert.glsl (+12, -16) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021