mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 15:42:35 +00:00
20 lines
348 B
Ruby
20 lines
348 B
Ruby
class IMICFPS
|
|
class Skydome < GameObject
|
|
def setup
|
|
bind_model(ModelLoader.new(type: :obj, file_path: "objects/skydome.obj", game_object: self))
|
|
end
|
|
|
|
def draw
|
|
glDisable(GL_LIGHTING)
|
|
super
|
|
glEnable(GL_LIGHTING)
|
|
end
|
|
|
|
def update
|
|
super
|
|
@y_rotation+=0.01
|
|
@y_rotation%=360
|
|
end
|
|
end
|
|
end
|