Sha256: dc3452942185abd89f150945964f06b4f328b137019c9e874b1e6059a7f7e224
Contents?: true
Size: 291 Bytes
Versions: 1
Compression:
Stored size: 291 Bytes
Contents
require 'rubytracer/colour' module Rubytracer class AmbientLight def initialize value @value = value end def specular(normal, view_vector, point, scene) return Colour.new(0,0,0) end def diffuse(normal, point, scene) return @value end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubytracer-0.1.0 | lib/rubytracer/lights/ambient.rb |