Sha256: d913c5861352d996ca88966f3c05a49465b61c170976a5aa8831da6e26ad1594

Contents?: true

Size: 354 Bytes

Versions: 2

Compression:

Stored size: 354 Bytes

Contents

require 'mittsu/opengl/material_basics'

module Mittsu
  class MeshBasicMaterial
    include OpenGL::MaterialBasics

    def refresh_uniforms(uniforms)
      refresh_uniforms_basic(uniforms)
    end

    protected

    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/mesh_basic_material.rb
mittsu-opengl-0.5.0 lib/mittsu/opengl_implementation/materials/mesh_basic_material.rb