Skip to content

Commit

Permalink
Cycles: templates - fix discarded 'dir' property for lights
Browse files Browse the repository at this point in the history
  • Loading branch information
howetuft committed Jan 18, 2024
1 parent eb2e490 commit 7b8799f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions templates/cycles_studio_dark.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<light
light_type="distant"
strength="3 3 3"
dir="-1 1 -1.5"
tfm="0.70710678 -0.51449576 0.48507125 0.0 0.70710678 0.51449576 -0.48507125 0.0 -0.0 0.68599434 0.72760688 0.0"
angle="0.3"
use_mis="true"
/>
Expand All @@ -47,7 +47,7 @@
<light
light_type="distant"
strength="0.1 0.1 0.1"
dir="1 1 -0.5"
tfm="0.70710678 0.23570226 -0.66666667 0.0 -0.70710678 0.23570226 -0.66666667 0.0 -0.0 0.94280904 0.33333333 0.0"
angle="2"
use_mis="true"
use_camera="false"
Expand All @@ -57,6 +57,7 @@
<light
light_type="distant"
strength="0.20 0.20 0.20"
tfm="-1.0 0.0 0.0 0.0 0.0 0.0 1.0 0.0 0.0 1.0 -0.0 0.0"
dir="0 -1 0"
angle="1.57"
use_mis="true"
Expand Down
6 changes: 3 additions & 3 deletions templates/cycles_studio_light.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<light
light_type="distant"
strength="3.0 3.0 3.0"
dir="-1 1 -1.5"
tfm="0.70710678 -0.51449576 0.48507125 0.0 0.70710678 0.51449576 -0.48507125 0.0 -0.0 0.68599434 0.72760688 0.0"
angle="0.3"
use_mis="true"
/>
Expand All @@ -47,7 +47,7 @@
<light
light_type="distant"
strength="0.1 0.1 0.1"
dir="1 1 -0.5"
tfm="'0.70710678 0.23570226 -0.66666667 0.0 -0.70710678 0.23570226 -0.66666667 0.0 -0.0 0.94280904 0.33333333 0.0"
angle="2"
use_mis="true"
use_camera="false"
Expand All @@ -57,7 +57,7 @@
<light
light_type="distant"
strength="0.20 0.20 0.20"
dir="0 -1 0"
tfm="-1.0 0.0 0.0 0.0 0.0 0.0 1.0 0.0 0.0 1.0 -0.0 0.0"
angle="1.57"
use_mis="true"
use_camera="false"
Expand Down
2 changes: 1 addition & 1 deletion templates/cycles_sunlight.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
light_type="distant"
co="1 1 1"
strength="1 1 1"
dir="-84958977.19280016, 32758678.665038515, -119200843.81611572"
tfm="0.35976487 -0.74146342 0.56639318 0.0 0.933043 0.28589518 -0.21839119 0.0 0.0 0.60703867 0.79467229 0.0"
angle="0.008726646259971648"
/>
</state>
Expand Down

0 comments on commit 7b8799f

Please sign in to comment.