Skip to content

Commit

Permalink
LuxCore: add 'Interior' preset to sunsky
Browse files Browse the repository at this point in the history
  • Loading branch information
howetuft committed May 26, 2024
1 parent 4c52b74 commit ed0a8c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Render/lights.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,13 @@ class SunskyLight(FeatureBase):
"App::Property",
"The gain preset to use for sun & sky (Luxcore only):\n"
"* 'Physical' yields accurate real light power, needing tone "
"mapping\n"
"mapping or camera advanced settings\n"
"* 'Mitigated' allows to render without tone mapping\n"
"* 'Interior' is intended for interior scenes "
"(through glass...)\n"
"* 'Custom' gives full control on gain value",
),
("Mitigated", "Physical", "Custom"),
("Mitigated", "Physical", "Interior", "Custom"),
0,
),
"LuxcoreCustomGain": Prop(
Expand Down
2 changes: 2 additions & 0 deletions Render/renderers/Luxcore.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,8 @@ def write_sunskylight(
gain = 1.0
elif gain_preset == "Mitigated":
gain = 0.00003
elif gain_preset == "Interior":
gain = 0.001
elif gain_preset == "Custom":
gain = kwargs.get("CustomGain")
else:
Expand Down

0 comments on commit ed0a8c4

Please sign in to comment.