Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions loadldraw/loadldraw.py
Original file line number Diff line number Diff line change
Expand Up @@ -1827,6 +1827,11 @@ def __createNodeBasedMaterial(blenderName, col, isSlopeMaterial=False):

isTransparent = col["alpha"] < 1.0

if isBlender28OrLater and isTransparent:
material.blend_method = 'BLEND'
material.refraction_depth = 0.1
material.use_screen_refraction = True

if Options.instructionsLook:
BlenderMaterials.__createCyclesBasic(nodes, links, colour, col["alpha"], "")
elif col["name"] == "Milky_White":
Expand Down Expand Up @@ -3771,6 +3776,11 @@ def setupRealisticLook():
if (scene.cycles.glossy_bounces < 20):
scene.cycles.glossy_bounces = 20

if isBlender28OrLater:
scene.eevee.use_ssr = True
scene.eevee.use_ssr_refraction = True
scene.eevee.use_taa_reprojection = True

# Check layer names to see if we were previously rendering instructions and change settings back.
layerNames = getLayerNames(scene)
if ("SolidBricks" in layerNames) or ("TransparentBricks" in layerNames):
Expand Down