Method: GlStuff::Material#initialize
- Defined in:
- lib/examples/GlStuff/material.rb
#initialize ⇒ Material
Returns a new instance of Material.
6 7 8 9 10 11 12 13 |
# File 'lib/examples/GlStuff/material.rb', line 6 def initialize() @ambient = GlUtility.mem_pointer([ 0.7, 0.7, 0.7, 1.0 ]) @ambient_color = GlUtility.mem_pointer([ 0.8, 0.8, 0.2, 1.0 ]) @diffuse = GlUtility.mem_pointer([ 0.5, 0.5, 0.5, 1.0 ]) @specular = GlUtility.mem_pointer([ 1.0, 1.0, 1.0, 1.0 ]) @shininess = GlUtility.mem_pointer([ 0.0 ]) # 0 is noe, 100 would be hide @emission = GlUtility.mem_pointer([0.3, 0.2, 0.2, 0.0]) end |