Sha256: 66a32d29dff56e9c1b4a012860d2999867c5936e2f734564924bde28399f9fdc
Contents?: true
Size: 765 Bytes
Versions: 27
Compression:
Stored size: 765 Bytes
Contents
# encoding: ascii-8bit # Copyright 2014 Ball Aerospace & Technologies Corp. # All Rights Reserved. # # This program is free software; you can modify and/or redistribute it # under the terms of the GNU General Public License # as published by the Free Software Foundation; version 3 with # attribution addendums as found in the LICENSE.txt module Cosmos class GlMaterial attr_accessor :ambient attr_accessor :diffuse attr_accessor :specular attr_accessor :emission attr_accessor :shininess def initialize @ambient = [0.2, 0.2, 0.2, 1.0] @diffuse = [0.8, 0.8, 0.8, 1.0] @specular = [1.0, 1.0, 1.0, 1.0] @emission = [0.0, 0.0, 0.0, 1.0] @shininess = 30.0; end end # class Material end # module Cosmos
Version data entries
27 entries across 27 versions & 1 rubygems