Sha256: 1a05c8e56b97f8dab0a67d909d9714eb27076806ffee174f285185a29a719e42
Contents?: true
Size: 1.01 KB
Versions: 37
Compression:
Stored size: 1.01 KB
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 # Captures all the parameters associated with an OpenGL light class GlLight attr_accessor :ambient attr_accessor :diffuse attr_accessor :specular attr_accessor :position attr_accessor :direction attr_accessor :exponent attr_accessor :cutoff attr_accessor :c_attn attr_accessor :l_attn attr_accessor :q_attn def initialize @ambient =[0.0, 0.0, 0.0, 1.0] @diffuse = [1.0, 1.0, 1.0, 1.0] @specular = [0.0, 0.0, 0.0, 1.0] @position = [-2.0, 2.0, 5.0, 0.0] @direction = [0.0, 0.0, -1.0] @exponent = 0.0 @cutoff = 180.0 @c_attn = 1.0 @l_attn = 0.0 @q_attn = 0.0 end end end
Version data entries
37 entries across 37 versions & 1 rubygems