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
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2017-03-22 23:28:59 +0300
committerClément Foucault <foucault.clem@gmail.com>2017-03-22 23:29:23 +0300
commit8abc315a23750cd26c0de36d0e85dde71c93ed78 (patch)
tree9af624fb57c7723d25eced66b6dfc5756613e951 /source/blender/draw/intern/draw_common.h
parent26c140fbc85c6cee4ce7548873c38e6ce2f24c8b (diff)
Object Mode Engine: New grid drawing.
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.
Diffstat (limited to 'source/blender/draw/intern/draw_common.h')
-rw-r--r--source/blender/draw/intern/draw_common.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_common.h b/source/blender/draw/intern/draw_common.h
index 09d176c2b80..e8e7cf40432 100644
--- a/source/blender/draw/intern/draw_common.h
+++ b/source/blender/draw/intern/draw_common.h
@@ -68,9 +68,18 @@ typedef struct GlobalsUboStorage {
float colorOutline[4];
float colorLampNoAlpha[4];
+ float colorBackground[4];
+
+ float colorGrid[4];
+ float colorGridEmphasise[4];
+ float colorGridAxisX[4];
+ float colorGridAxisY[4];
+ float colorGridAxisZ[4];
+
/* Pack individual float at the end of the buffer to avoid alignement errors */
float sizeLampCenter, sizeLampCircle, sizeLampCircleShadow;
float sizeVertex, sizeEdge, sizeEdgeFix, sizeFaceDot;
+ float gridDistance, gridResolution, gridSubdivisions, gridScale;
} GlobalsUboStorage;
/* Keep in sync with globalsBlock in shaders */