Sha256: 5d15efb79317a1b9bd2d804bb04aa3067d173358633e22d1a00cb364aab3afa5
Contents?: true
Size: 655 Bytes
Versions: 2
Compression:
Stored size: 655 Bytes
Contents
module Mittsu class PointCloudMaterial def refresh_uniforms(uniforms) uniforms['psColor'].value = color uniforms['opacity'].value = opacity uniforms['size'].value = size # uniforms['scale'].value = _canvas.height / 2.0 # TODO get window height? uniforms['map'].value = map if !map.nil? offset = material.map.offset repeat = material.map.repeat uniforms['offsetRepeat'].value.set(offset.x, offset.y, repeat.x, repeat.y) end end def init_shader @shader = OpenGL::Shader::Lib.create_shader(shader_id) end def shader_id :particle_basic end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mittsu-opengl-0.5.1 | lib/mittsu/opengl_implementation/materials/point_cloud_material.rb |
mittsu-opengl-0.5.0 | lib/mittsu/opengl_implementation/materials/point_cloud_material.rb |