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