Class: Mittsu::HemisphereLight::Cache

Inherits:
Struct
  • Object
show all
Defined in:
lib/mittsu/renderers/opengl/lights/hemisphere_light.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCache

Returns a new instance of Cache.



6
7
8
# File 'lib/mittsu/renderers/opengl/lights/hemisphere_light.rb', line 6

def initialize
  super(0, 0, [], [], [])
end

Instance Attribute Details

#countObject

Returns the value of attribute count

Returns:

  • (Object)

    the current value of count



5
6
7
# File 'lib/mittsu/renderers/opengl/lights/hemisphere_light.rb', line 5

def count
  @count
end

#ground_colorsObject

Returns the value of attribute ground_colors

Returns:

  • (Object)

    the current value of ground_colors



5
6
7
# File 'lib/mittsu/renderers/opengl/lights/hemisphere_light.rb', line 5

def ground_colors
  @ground_colors
end

#lengthObject

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



5
6
7
# File 'lib/mittsu/renderers/opengl/lights/hemisphere_light.rb', line 5

def length
  @length
end

#positionsObject

Returns the value of attribute positions

Returns:

  • (Object)

    the current value of positions



5
6
7
# File 'lib/mittsu/renderers/opengl/lights/hemisphere_light.rb', line 5

def positions
  @positions
end

#sky_colorsObject

Returns the value of attribute sky_colors

Returns:

  • (Object)

    the current value of sky_colors



5
6
7
# File 'lib/mittsu/renderers/opengl/lights/hemisphere_light.rb', line 5

def sky_colors
  @sky_colors
end

Instance Method Details

#resetObject



10
11
12
# File 'lib/mittsu/renderers/opengl/lights/hemisphere_light.rb', line 10

def reset
  self.length = 0
end