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:
2020-03-23 11:48:32 -05:00
parent 18a62b81cc
commit 87fcc3a05c
14 changed files with 139 additions and 48 deletions

22
lib/scene.rb Normal file
View 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