Blender Git Commit Log

Git Commits -> Revision 5f025a7

Revision 5f025a7 by Clément Foucault (master)
October 12, 2017, 01:48 (GMT)
Object Mode: Grid: Add a non-hard depth test.

This adds a custom depth test that have the benefits to glitch less and be more visually pleasing.
Downside is that it let the grid pass trough the objects a little.

This effect is done in NDC space so that it counteract the logarithmic depth distribution imprecision (read as it's less visible near the camera but more present far away).

This patch also includes some cleanups.

Commit Details:

Full Hash: 5f025a7e5e043a2dbdebf66668217fbae591ef89
Parent Commit: dc95c79
Lines Changed: +28, -19

3 Modified Paths:

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