Modern 'GL now renders properly, camera works as expected, added fallback to immediate mode if shader fails to compile.

This commit is contained in:
2019-12-08 17:50:20 -06:00
parent e076ce8612
commit af19166af2
9 changed files with 68 additions and 67 deletions

View File

@@ -10,6 +10,9 @@ class IMICFPS
end
def draw(camera, lights, entities)
glViewport(0, 0, window.width, window.height)
glEnable(GL_DEPTH_TEST)
entities.each do |object|
if object.visible && object.renderable
# Render bounding boxes before transformation is applied