Sha256: 09c4d26eb1d26af06ba4264d179a4f2c5c5805118e2e4a485ef982e7faf490c1
Contents?: true
Size: 581 Bytes
Versions: 16
Compression:
Stored size: 581 Bytes
Contents
require 'mittsu/renderers/opengl/materials/opengl_material_basics' module Mittsu class MeshLambertMaterial include OpenGLMaterialBasics 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 = ShaderLib.create_shader(shader_id) end def shader_id :lambert end end end
Version data entries
16 entries across 16 versions & 1 rubygems