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.
This commit is contained in:
Clément Foucault
2017-08-10 15:43:15 +02:00
parent 896154d15d
commit 6e2f17ea02
6 changed files with 68 additions and 43 deletions

View File

@@ -1183,8 +1183,8 @@ class EEVEE_MATERIAL_PT_options(MaterialButtonsPanel, Panel):
if mat.blend_method not in {"OPAQUE", "CLIP", "HASHED"}:
layout.prop(mat, "transparent_hide_backside")
layout.prop(mat, "transparent_screen_refraction")
layout.prop(mat, "use_screen_refraction")
layout.prop(mat, "refraction_depth")
classes = (