Sha256: 62c3a83527360d7122f1c96acb46d9962890657300c84f39dd1905f3f0098fa6
Contents?: true
Size: 542 Bytes
Versions: 2
Compression:
Stored size: 542 Bytes
Contents
require 'mittsu/lights/light' module Mittsu class PointLight < Light attr_accessor :decay def initialize(color = nil, intensity = 1.0, distance = 0.0, decay = 1.0) super(color) @type = 'PointLight' @intensity = intensity @distance = distance @decay = decay # for physically correct light, should be 2 end def clone light = PointLight.new super(light) light.intensity = @intensity light.distance = @distance light.decay = @decay light end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mittsu-0.1.1 | lib/mittsu/lights/point_light.rb |
mittsu-0.1.0 | lib/mittsu/lights/point_light.rb |