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:
authorDalai Felinto <dfelinto@gmail.com>2016-10-21 23:50:00 +0300
committerDalai Felinto <dfelinto@gmail.com>2016-10-21 23:51:12 +0300
commit5ff586610a47aa26ed388270c9a26487c553f1f1 (patch)
treec152a29097278e1e52c29678eefc4dbff136e8d6 /source/blender/makesdna/DNA_view3d_types.h
parentdeb77c0e7490ed300a7688bf462de85f36ee1ca3 (diff)
Viewport: use depth shader to debug the depth
At the moment this already shows that the depth is the same after the solid plates and in the very end of drawing, while they should be different. Later on we can adapt this to show different buffers we want to debug. I am using near=0.1, far=2.0 for my tests. I decided not to make a doversion for near/far because this is for debugging only
Diffstat (limited to 'source/blender/makesdna/DNA_view3d_types.h')
-rw-r--r--source/blender/makesdna/DNA_view3d_types.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_view3d_types.h b/source/blender/makesdna/DNA_view3d_types.h
index 7e0adf48849..3a990a183c5 100644
--- a/source/blender/makesdna/DNA_view3d_types.h
+++ b/source/blender/makesdna/DNA_view3d_types.h
@@ -66,6 +66,10 @@ struct GPUViewport;
/* The near/far thing is a Win EXCEPTION. Thus, leave near/far in the
* code, and patch for windows. */
+
+typedef struct View3DDebug {
+ float znear, zfar;
+} View3DDebug;
/* Background Picture in 3D-View */
typedef struct BGpic {
@@ -249,6 +253,7 @@ typedef struct View3D {
short prev_drawtype;
short pad1;
float pad2;
+ View3DDebug debug;
} View3D;
@@ -327,7 +332,9 @@ typedef struct View3D {
/* View3d->tmp_compat_flag */
enum {
- V3D_NEW_VIEWPORT = (1 << 0),
+ V3D_NEW_VIEWPORT = (1 << 0),
+ V3D_DEBUG_SHOW_SCENE_DEPTH = (1 << 1),
+ V3D_DEBUG_SHOW_COMBINED_DEPTH = (1 << 2),
};
/* View3D->around */