Sha256: bcdb18fbe0255ae3fb7abcd20b602a25036e336e1239175449413220f1bb0401

Contents?: true

Size: 295 Bytes

Versions: 16

Compression:

Stored size: 295 Bytes

Contents

module Mittsu
  class LineBasicMaterial
    def refresh_uniforms(uniforms)
      uniforms['diffuse'].value = color
      uniforms['opacity'].value = opacity
    end

    def init_shader
      @shader = ShaderLib.create_shader(shader_id)
    end

    def shader_id
      :basic
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
mittsu-0.4.1 lib/mittsu/renderers/opengl/materials/line_basic_material.rb
mittsu-0.4.0 lib/mittsu/renderers/opengl/materials/line_basic_material.rb
mittsu-0.3.3 lib/mittsu/renderers/opengl/materials/line_basic_material.rb
mittsu-0.3.2 lib/mittsu/renderers/opengl/materials/line_basic_material.rb
mittsu-0.3.1 lib/mittsu/renderers/opengl/materials/line_basic_material.rb
mittsu-0.3.0 lib/mittsu/renderers/opengl/materials/line_basic_material.rb
mittsu-0.2.4 lib/mittsu/renderers/opengl/materials/line_basic_material.rb
mittsu-0.2.3 lib/mittsu/renderers/opengl/materials/line_basic_material.rb
mittsu-0.2.2 lib/mittsu/renderers/opengl/materials/line_basic_material.rb
mittsu-0.2.1 lib/mittsu/renderers/opengl/materials/line_basic_material.rb
mittsu-0.2.0 lib/mittsu/renderers/opengl/materials/line_basic_material.rb
mittsu-0.1.7 lib/mittsu/renderers/opengl/materials/line_basic_material.rb
mittsu-0.1.6 lib/mittsu/renderers/opengl/materials/line_basic_material.rb
mittsu-0.1.5 lib/mittsu/renderers/opengl/materials/line_basic_material.rb
mittsu-0.1.4 lib/mittsu/renderers/opengl/materials/line_basic_material.rb
mittsu-0.1.3 lib/mittsu/renderers/opengl/materials/line_basic_material.rb