diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-01-29 05:06:59 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-01-29 17:07:53 +0300 |
commit | bc99f4903c5f55d35b5fec32d6e18400f25089fb (patch) | |
tree | 2fc65d8a39a7529d0cc885b26805ebc5c6e54f1e /source/blender/makesdna | |
parent | d88492d4ad432a66d72269fe5fa514b18d0407ff (diff) |
Workbench: Add transparency support for materials
This adds the posibility of having certain materials transparent in solid
mode. The option is (for now) per material only and thus only shows in
material color mode.
This uses the same rendering technique as Xray mode.
Note that objects are not considered transparent for selection with this.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_material_types.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_material_types.h b/source/blender/makesdna/DNA_material_types.h index 447c65bfabe..10c40cc28a6 100644 --- a/source/blender/makesdna/DNA_material_types.h +++ b/source/blender/makesdna/DNA_material_types.h @@ -154,7 +154,8 @@ typedef struct Material { float gloss_mir DNA_DEPRECATED; float roughness; float metallic; - float pad4[2]; + float transparency; + float pad4; /* Ror buttons and render. */ char pr_type, use_nodes; |