Class: Rubytracer::AmbientLight
- Inherits:
-
Object
- Object
- Rubytracer::AmbientLight
- Defined in:
- lib/rubytracer/lights/ambient.rb
Instance Method Summary collapse
- #diffuse(normal, point, scene) ⇒ Object
-
#initialize(value) ⇒ AmbientLight
constructor
A new instance of AmbientLight.
- #specular(normal, view_vector, point, scene) ⇒ Object
Constructor Details
#initialize(value) ⇒ AmbientLight
Returns a new instance of AmbientLight.
5 6 7 |
# File 'lib/rubytracer/lights/ambient.rb', line 5 def initialize value @value = value end |
Instance Method Details
#diffuse(normal, point, scene) ⇒ Object
13 14 15 |
# File 'lib/rubytracer/lights/ambient.rb', line 13 def diffuse(normal, point, scene) return @value end |