Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-05-093D Grid: Use View UBO & small cleanupClément Foucault
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-01-18View 3D Grid: Improve precision and reduce code complexityClément Foucault
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
2018-12-03View3D: Grid: Don't make the Zaxis produce any fragment is not neededClément Foucault
This was a bug that was making the grid drawing even more slower than it is.
2018-07-05Cleanup: flag checksCampbell Barton
2017-10-12Object Mode: Grid: Add a non-hard depth test.Clément Foucault
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.
2017-05-29Object Mode Engine: Fixing the 3D grid 1/2Clément Foucault
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.
2017-03-27New Grid: small modificationClément Foucault
Fix wrong coord picked when display only one axis. Small optimizations here and there.
2017-03-25New Grid : Feature parity with old grid.Clément Foucault
Removed infinite details and went for decreasing details with the distance instead (like the axis aligned ortho view auto sized grid). Separate drawing of the Z axis into 2 pass (using shading group) to render ordered transparency with the main grid pass.
2017-03-25New Grid: Fix depth fighting and remove some unused variables.Clément Foucault
2017-03-22Object Mode Engine: New grid drawing.Clément Foucault
Move the grid drawing to the Object mode engine and implement a new infinite grid. Everything is done but it needs better parameters to be intuitive.