modified starting sunhight + sunrise functions

This commit is contained in:
Jasper 2015-03-09 13:58:48 +01:00
parent 4bfcc282a1
commit 251048bbd0
2 changed files with 11 additions and 4 deletions

View File

@ -13079,7 +13079,7 @@
<directionalLight>
<xOffset>-1.0</xOffset>
<yOffset>1.5</yOffset>
<yOffset>-6</yOffset>
<zOffset>1.0</zOffset>
<rColour>1.0</rColour>
<gColour>1.0</gColour>

View File

@ -13,9 +13,16 @@ function trigger(objectToChange)
timeDiff = maxTimeDiff
end
timeDiff = timeDiff/maxTimeDiff
local x = 1 - 0.3 * timeDiff
local y = math.sqrt(timeDiff) * 1.0 - 0.1
local z = 0.7 * timeDiff
local x = 10
local y = -18 + math.sqrt(timeDiff) * 29
local z = -8 + timeDiff * 15
level:setSunDirection(x,y,z)
end
end
--local x = 0.7 + 0.3 * timeDiff
--local y = math.sqrt(timeDiff) * 2.2 - 1.5
--local z = -0.7 - 0.7 * timeDiff
--start 1,-6,-2
--ziel 10,10,10