Blender Git Commit Log

Git Commits -> Revision e104d82

Revision e104d82 by Clément Foucault (master)
May 29, 2017, 13:52 (GMT)
Object Mode Engine: Fixing the 3D grid 1/2

Do not use the inverse perspective matrix inside the shader to recover world positions.
That leads to severe float imprecision leading to nasty artifacts.

Instead we compute the world view vector for each pixels and do a ray to plane intersection.
We are still getting low precision derivatives when going far away from the origin, and thus artifacts.

This commit also fixes the non-appearing negative Z axis in 3D view.

Commit Details:

Full Hash: e104d82376134acd9b6c8729f271a03e83b64003
Parent Commit: 9caf328
Lines Changed: +76, -15

5 Modified Paths:

/source/blender/draw/intern/draw_manager.c (+3, -0) (Diff)
/source/blender/draw/intern/DRW_render.h (+1, -0) (Diff)
/source/blender/draw/modes/object_mode.c (+30, -7) (Diff)
/source/blender/draw/modes/shaders/object_grid_frag.glsl (+39, -2) (Diff)
/source/blender/draw/modes/shaders/object_grid_vert.glsl (+3, -6) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021