Sha256: 8fa9602be00a321284dff64c2206bf5973c3fbbed9e89acfa638b347455ede32

Contents?: true

Size: 386 Bytes

Versions: 20

Compression:

Stored size: 386 Bytes

Contents

require 'mittsu/core/object_3d'
require 'mittsu/math/color'

module Mittsu
  class Light < Object3D
    attr_accessor :color, :only_shadow, :intensity, :distance

    def initialize(color = nil)
      super()
      @type = 'Light'
      @color = Color.new(color)
    end

    def clone(light = Light.new)
      super(light)

      light.color.copy(@color)
      light
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
mittsu-0.5.0 lib/mittsu/lights/light.rb
mittsu-0.4.1 lib/mittsu/lights/light.rb
mittsu-0.4.0 lib/mittsu/lights/light.rb
mittsu-0.3.3 lib/mittsu/lights/light.rb
mittsu-0.3.2 lib/mittsu/lights/light.rb
mittsu-0.3.1 lib/mittsu/lights/light.rb
mittsu-0.3.0 lib/mittsu/lights/light.rb
mittsu-0.2.4 lib/mittsu/lights/light.rb
mittsu-0.2.3 lib/mittsu/lights/light.rb
mittsu-0.2.2 lib/mittsu/lights/light.rb
mittsu-0.2.1 lib/mittsu/lights/light.rb
mittsu-0.2.0 lib/mittsu/lights/light.rb
mittsu-0.1.7 lib/mittsu/lights/light.rb
mittsu-0.1.6 lib/mittsu/lights/light.rb
mittsu-0.1.5 lib/mittsu/lights/light.rb
mittsu-0.1.4 lib/mittsu/lights/light.rb
mittsu-0.1.3 lib/mittsu/lights/light.rb
mittsu-0.1.2 lib/mittsu/lights/light.rb
mittsu-0.1.1 lib/mittsu/lights/light.rb
mittsu-0.1.0 lib/mittsu/lights/light.rb