diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2018-06-06 15:47:54 +0300 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2018-06-06 15:51:18 +0300 |
commit | f1fd5ed74fb0afd602f53860d0b2db46189c218a (patch) | |
tree | 47af0711292c8dcf5e157473b21949c706540b75 /source/blender/makesdna/DNA_view3d_types.h | |
parent | 4a52531a11fa27da36f9dbe849ecf0573f35a47b (diff) |
T55333 Workbench: Cavity Shader
A cavity shader based on SSAO. Works on all workbench deferred passes.
Per 3d viewport the cavity shader options can be set as different
shading needed different options. Some global options are in the
Viewport Display of the scene like num samples and distance.
Experimental: Naming of Ridges and Valleys
Diffstat (limited to 'source/blender/makesdna/DNA_view3d_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_view3d_types.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_view3d_types.h b/source/blender/makesdna/DNA_view3d_types.h index c0f13308df6..ea90ac261da 100644 --- a/source/blender/makesdna/DNA_view3d_types.h +++ b/source/blender/makesdna/DNA_view3d_types.h @@ -150,6 +150,9 @@ typedef struct View3DShading { float object_outline_color[3]; float xray_alpha; + + float cavity_valley_factor; + float cavity_ridge_factor; } View3DShading; /* 3D Viewport Overlay setings */ @@ -347,6 +350,7 @@ enum { V3D_SHADING_SHADOW = (1 << 2), V3D_SHADING_SCENE_LIGHT = (1 << 3), V3D_SHADING_SPECULAR_HIGHLIGHT = (1 << 4), + V3D_SHADING_CAVITY = (1 << 5), }; /* View3DShading->single_color_type */ |