Class: Ogre::Light

Inherits:
Object show all
Defined in:
lib/shattered_view/ogrerb/light.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#scene_managerObject

Returns the value of attribute scene_manager.



3
4
5
# File 'lib/shattered_view/ogrerb/light.rb', line 3

def scene_manager
  @scene_manager
end

Instance Method Details

#ambientObject

Return the scene’s total ambient color



16
17
18
# File 'lib/shattered_view/ogrerb/light.rb', line 16

def ambient
  scene_manager.get_ambient_light
end

#ambient=(*args) ⇒ Object

Set the scene’s total ambient color



21
22
23
# File 'lib/shattered_view/ogrerb/light.rb', line 21

def ambient=(*args)
  scene_manager.set_ambient_light *args
end