Sha256: e8b2ac7db7de35ad4ce74d9cdc8f1476b762ed971cd934e3f595fb17cf79c221
Contents?: true
Size: 305 Bytes
Versions: 2
Compression:
Stored size: 305 Bytes
Contents
module Mittsu class LineBasicMaterial def refresh_uniforms(uniforms) uniforms['diffuse'].value = color uniforms['opacity'].value = opacity end def init_shader @shader = OpenGL::Shader::Lib.create_shader(shader_id) end def shader_id :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/line_basic_material.rb |
mittsu-opengl-0.5.0 | lib/mittsu/opengl_implementation/materials/line_basic_material.rb |