1
0
Fork 0

Make sure that the viewer distance (z-offset-m) doesn´t affect the lights size

This commit is contained in:
Erik Hofman 2022-02-19 23:29:01 +01:00
parent 18ffa15107
commit df2d39b905
2 changed files with 30 additions and 12 deletions

View file

@ -45,21 +45,30 @@
<z-offset>0.175</z-offset>
</animation>
<animation>
<type>scale</type>
<object-name>light</object-name>
<property>sim/current-view/z-offset-m</property>
<x-min>1.0</x-min>
<y-min>1.0</y-min>
<z-min>1.0</z-min>
<x-factor>-0.065</x-factor>
<y-factor>-0.065</y-factor>
<z-factor>-0.065</z-factor>
</animation>
<animation>
<type>dist-scale</type>
<object-name>light</object-name>
<factor>100</factor>
<interpolation>
<entry>
<ind>0</ind>
<dep alias="/params/dist-scale"/>
</entry>
<entry>
<ind>300</ind>
<dep>4</dep>
</entry>
<entry>
<ind>1500</ind>
<dep>8</dep>
<ind alias="/params/range-m"/>
<dep>1</dep>
</entry>
</interpolation>
</animation>

View file

@ -47,21 +47,30 @@
<z-offset>0.175</z-offset>
</animation>
<animation>
<type>scale</type>
<object-name>light</object-name>
<property>sim/current-view/z-offset-m</property>
<x-min>1.0</x-min>
<y-min>1.0</y-min>
<z-min>1.0</z-min>
<x-factor>-0.065</x-factor>
<y-factor>-0.065</y-factor>
<z-factor>-0.065</z-factor>
</animation>
<animation>
<type>dist-scale</type>
<object-name>light</object-name>
<factor>100</factor>
<interpolation>
<entry>
<ind>0</ind>
<dep alias="/params/dist-scale"/>
</entry>
<entry>
<ind>300</ind>
<dep>4</dep>
</entry>
<entry>
<ind>1500</ind>
<dep>8</dep>
<ind alias="/params/range-m"/>
<dep>1</dep>
</entry>
</interpolation>
</animation>