Sha256: 86a3de9694466a42311d542a412a68a362fb99f1db6a87dcb079e09a2385a529
Contents?: true
Size: 514 Bytes
Versions: 1
Compression:
Stored size: 514 Bytes
Contents
module Mittsu class OpenGLMeshLambertMaterial < OpenGLMeshBasicMaterial def refresh_uniforms(uniforms) super uniforms['emissive'].value = @material.emissive if @material.wrap_around uniforms['wrapRGB'].value.copy(@material.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mittsu-0.1.2 | lib/mittsu/renderers/opengl/materials/opengl_mesh_lambert_material.rb |