Class: Mittsu::Light
Direct Known Subclasses
AmbientLight, AreaLight, DirectionalLight, HemisphereLight, PointLight, SpotLight
Constant Summary
Constants inherited from Object3D
Instance Attribute Summary collapse
-
#color ⇒ Object
Returns the value of attribute color.
-
#distance ⇒ Object
Returns the value of attribute distance.
-
#intensity ⇒ Object
Returns the value of attribute intensity.
-
#only_shadow ⇒ Object
Returns the value of attribute only_shadow.
Attributes inherited from Object3D
#cast_shadow, #children, #frustum_culled, #geometry, #id, #matrix, #matrix_auto_update, #matrix_world, #matrix_world_needs_update, #name, #parent, #position, #quaternion, #receive_shadow, #render_order, #rotation, #rotation_auto_update, #scale, #type, #up, #user_data, #uuid, #visible
Instance Method Summary collapse
- #clone(light = Light.new) ⇒ Object
-
#initialize(color = nil) ⇒ Light
constructor
A new instance of Light.
Methods inherited from Object3D
#add, #apply_matrix, #get_object_by_id, #get_object_by_name, #get_object_by_property, #get_world_direction, #get_world_position, #get_world_quaternion, #get_world_rotation, #get_world_scale, #local_to_world, #look_at, #print_tree, #raycast, #remove, #rotate_on_axis, #rotate_x, #rotate_y, #rotate_z, #set_rotation_from_axis_angle, #set_rotation_from_euler, #set_rotation_from_matrix, #set_rotation_from_quaternion, #to_json, #to_s, #translate_on_axis, #translate_x, #translate_y, #translate_z, #traverse, #traverse_ancestors, #traverse_visible, #update_matrix, #update_matrix_world, #world_to_local
Methods included from EventDispatcher
#add_event_listener, #dispatch_event, #has_event_listener, #remove_event_listener
Constructor Details
Instance Attribute Details
#color ⇒ Object
Returns the value of attribute color.
6 7 8 |
# File 'lib/mittsu/lights/light.rb', line 6 def color @color end |
#distance ⇒ Object
Returns the value of attribute distance.
6 7 8 |
# File 'lib/mittsu/lights/light.rb', line 6 def distance @distance end |
#intensity ⇒ Object
Returns the value of attribute intensity.
6 7 8 |
# File 'lib/mittsu/lights/light.rb', line 6 def intensity @intensity end |
#only_shadow ⇒ Object
Returns the value of attribute only_shadow.
6 7 8 |
# File 'lib/mittsu/lights/light.rb', line 6 def only_shadow @only_shadow end |