class Mittsu::PointCloudMaterial
Attributes
size[RW]
size_attenuation[RW]
Public Class Methods
new(parameters = {})
click to toggle source
Calls superclass method
Mittsu::Material::new
# File lib/mittsu/materials/point_cloud_material.rb, line 22 def initialize(parameters = {}) super() @type = 'PointCloudMaterial' @color = Color.new(0xffffff) @map = nil @size = 1.0 @size_attenuation = true @vertex_colors = NoColors @fog = true self.set_values(parameters) end
Public Instance Methods
clone()
click to toggle source
Calls superclass method
Mittsu::Material#clone
# File lib/mittsu/materials/point_cloud_material.rb, line 41 def clone material = PointCloudMaterial.new super(material) material.color.copy(@color) material.map = @map material.size = @size material.size_attenuation = @size_attenuation material.vertex_colors = @vertex_colors material.fog = @fog material end