modified starting sunhight + sunrise functions
This commit is contained in:
parent
4bfcc282a1
commit
251048bbd0
@ -13079,7 +13079,7 @@
|
|||||||
|
|
||||||
<directionalLight>
|
<directionalLight>
|
||||||
<xOffset>-1.0</xOffset>
|
<xOffset>-1.0</xOffset>
|
||||||
<yOffset>1.5</yOffset>
|
<yOffset>-6</yOffset>
|
||||||
<zOffset>1.0</zOffset>
|
<zOffset>1.0</zOffset>
|
||||||
<rColour>1.0</rColour>
|
<rColour>1.0</rColour>
|
||||||
<gColour>1.0</gColour>
|
<gColour>1.0</gColour>
|
||||||
|
@ -13,9 +13,16 @@ function trigger(objectToChange)
|
|||||||
timeDiff = maxTimeDiff
|
timeDiff = maxTimeDiff
|
||||||
end
|
end
|
||||||
timeDiff = timeDiff/maxTimeDiff
|
timeDiff = timeDiff/maxTimeDiff
|
||||||
local x = 1 - 0.3 * timeDiff
|
local x = 10
|
||||||
local y = math.sqrt(timeDiff) * 1.0 - 0.1
|
local y = -18 + math.sqrt(timeDiff) * 29
|
||||||
local z = 0.7 * timeDiff
|
local z = -8 + timeDiff * 15
|
||||||
level:setSunDirection(x,y,z)
|
level:setSunDirection(x,y,z)
|
||||||
end
|
end
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user