Sha256: ae37376d13881f5ce182a77fb2a0502e2f30e938544308b95ae398773a3c3d61

Contents?: true

Size: 338 Bytes

Versions: 1

Compression:

Stored size: 338 Bytes

Contents

module Mittsu
  class OpenGLLineBasicMaterial < OpenGLMaterial
    def refresh_uniforms(uniforms)
      uniforms['diffuse'].value = @material.color
      uniforms['opacity'].value = @material.opacity
    end

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

    def shader_id
      :basic
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mittsu-0.1.2 lib/mittsu/renderers/opengl/materials/opengl_line_basic_material.rb