mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-16 08:02:36 +00:00
Fixed lighting artifacts caused by untransformed normals, added 'Scene' for holding objects for rendering, added turn table models to menus using a scene, misc other changes.
This commit is contained in:
22
lib/scene.rb
Normal file
22
lib/scene.rb
Normal file
@@ -0,0 +1,22 @@
|
||||
class IMICFPS
|
||||
class Scene
|
||||
attr_reader :camera, :entities, :lights
|
||||
|
||||
def initialize
|
||||
@camera = Camera.new(position: Vector.new)
|
||||
@entities = []
|
||||
@lights = []
|
||||
|
||||
setup
|
||||
end
|
||||
|
||||
def setup
|
||||
end
|
||||
|
||||
def draw
|
||||
end
|
||||
|
||||
def update(dt)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user