mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 15:42:35 +00:00
21 lines
483 B
Ruby
21 lines
483 B
Ruby
class IMICFPS
|
|
class Model
|
|
class Material
|
|
attr_accessor :name, :ambient, :diffuse, :specular
|
|
attr_reader :texture_id
|
|
def initialize(name)
|
|
@name = name
|
|
@ambient = Color.new(1, 1, 1, 1)
|
|
@diffuse = Color.new(1, 1, 1, 1)
|
|
@specular= Color.new(1, 1, 1, 1)
|
|
@texture = nil
|
|
@texture_id = nil
|
|
end
|
|
|
|
def set_texture(texture_path)
|
|
@texture_id = Texture.new(texture_path).id
|
|
end
|
|
end
|
|
end
|
|
end
|