Sha256: 309009196ff9fdf06c037048c516754845484af9936f5128fe6c6066a0f044b2
Contents?: true
Size: 554 Bytes
Versions: 2
Compression:
Stored size: 554 Bytes
Contents
require 'mittsu/lights/light' module Mittsu class HemisphereLight < Light attr_accessor :ground_color, :intensity def initialize(sky_color = nil, ground_color = nil, intensity = 1.0) super(sky_color) @type = 'HemisphereLight' @position.set(0.0, 100.0, 0.0) @ground_color = Color.new(ground_color) @intensity = intensity end def clone light = HemisphereLight.new super(light) light.ground_color.copy(@ground_color) light.intensity = @intensity light end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mittsu-0.1.1 | lib/mittsu/lights/hemisphere_light.rb |
mittsu-0.1.0 | lib/mittsu/lights/hemisphere_light.rb |