Materials of color work!

This commit is contained in:
2018-03-04 15:00:34 -06:00
parent 85a66a9f7d
commit ce1f95ea45
2 changed files with 28 additions and 16 deletions

View File

@@ -1,7 +1,12 @@
class IMICFPS
class Wavefront
class Material
def initialize(material_file)
attr_accessor :name, :ambient, :diffuse, :specular
def initialize(name)
@name = name
@ambient = Wavefront::Model::Color.new(1, 1, 1, 1)
@diffuse = Wavefront::Model::Color.new(1, 1, 1, 1)
@specular= Wavefront::Model::Color.new(1, 1, 1, 1)
end
end
end