ambient light saving fix
This commit is contained in:
parent
35831c1c8e
commit
35de3d2cd5
|
|
@ -17,7 +17,6 @@ class DynamicLight
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
@light_sprite.ambient = $light.ambient_light
|
|
||||||
$light.static_lights.each do |source|
|
$light.static_lights.each do |source|
|
||||||
@light_sprite.add_static_source(
|
@light_sprite.add_static_source(
|
||||||
source[0],
|
source[0],
|
||||||
|
|
@ -27,6 +26,7 @@ class DynamicLight
|
||||||
source[4]
|
source[4]
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
@light_sprite.ambient = $light.ambient_light
|
||||||
end
|
end
|
||||||
|
|
||||||
def dispose
|
def dispose
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ class Game_Light
|
||||||
attr_accessor :update_remove_static_light
|
attr_accessor :update_remove_static_light
|
||||||
attr_reader :dynamic_lights
|
attr_reader :dynamic_lights
|
||||||
attr_reader :static_lights
|
attr_reader :static_lights
|
||||||
|
attr_reader :ambient_light
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
@done = false # deprecated
|
@done = false # deprecated
|
||||||
|
|
@ -104,9 +105,6 @@ class Game_Light
|
||||||
@awaked = false
|
@awaked = false
|
||||||
end
|
end
|
||||||
|
|
||||||
def ambient_light
|
|
||||||
@ambient_light
|
|
||||||
end
|
|
||||||
def ambient_light=(val)
|
def ambient_light=(val)
|
||||||
@ambient_light = val
|
@ambient_light = val
|
||||||
@update_ambient_light = true
|
@update_ambient_light = true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue