Sha256: d3dd364897bbc0abdc58c07c5b8f80e6e732fc58961713986981cc80eb6786ca
Contents?: true
Size: 566 Bytes
Versions: 2
Compression:
Stored size: 566 Bytes
Contents
require 'mittsu/opengl/material_basics' module Mittsu class MeshLambertMaterial include OpenGL::MaterialBasics def refresh_uniforms(uniforms) refresh_uniforms_basic(uniforms) uniforms['emissive'].value = emissive if wrap_around uniforms['wrapRGB'].value.copy(wrap_rgb) end end def needs_view_matrix_uniform? true end def needs_lights? true end def init_shader @shader = OpenGL::Shader::Lib.create_shader(shader_id) end def shader_id :lambert 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_lambert_material.rb |
mittsu-opengl-0.5.0 | lib/mittsu/opengl_implementation/materials/mesh_lambert_material.rb |