From 6e2f17ea02be5caa9eee8a68ccd558474030b29a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Thu, 10 Aug 2017 15:43:15 +0200 Subject: Eevee: Refraction: Add "thickness" parameter. This enables to fake a second refraction event. This is great to simulate thin planar objects such as glass panels. --- source/blender/makesdna/DNA_material_types.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/makesdna/DNA_material_types.h') diff --git a/source/blender/makesdna/DNA_material_types.h b/source/blender/makesdna/DNA_material_types.h index f4f68e112e2..220326fb01d 100644 --- a/source/blender/makesdna/DNA_material_types.h +++ b/source/blender/makesdna/DNA_material_types.h @@ -213,10 +213,11 @@ typedef struct Material { /* Transparency */ float alpha_threshold; + float refract_depth; char blend_method; char blend_shadow; char blend_flag; - char pad6; + char pad6[5]; /* image to use for image/uv space, also bake target * (not to be used shading/rendering pipeline, this is editor featyure only!). */ -- cgit v1.2.3