Class: Mittsu::OpenGLAmbientLight

Inherits:
OpenGLLight show all
Defined in:
lib/mittsu/renderers/opengl/lights/opengl_ambient_light.rb

Defined Under Namespace

Classes: Cache

Constant Summary collapse

TYPE =
:ambient

Instance Attribute Summary

Attributes inherited from OpenGLLight

#camera_helper

Attributes inherited from OpenGLObject3D

#active, #model_view_matrix, #morph_target_influences

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from OpenGLLight

#initialize, #project, #setup, #to_sym, #type

Methods inherited from OpenGLObject3D

#active?, #add_opengl_object, #buffer_material, #init, #init_geometry, #initialize, #load_uniforms_matrices, #project, #setup_matrices

Constructor Details

This class inherits a constructor from Mittsu::OpenGLLight

Class Method Details

.null_remaining_lights(_) ⇒ Object



24
# File 'lib/mittsu/renderers/opengl/lights/opengl_ambient_light.rb', line 24

def self.null_remaining_lights(_); end

Instance Method Details

#setup_specific(_) ⇒ Object



18
19
20
21
22
# File 'lib/mittsu/renderers/opengl/lights/opengl_ambient_light.rb', line 18

def setup_specific(_)
  @cache.value[0] += @light.color.r
  @cache.value[1] += @light.color.g
  @cache.value[2] += @light.color.b
end