Initital shader lighting support

This commit is contained in:
2019-12-08 20:05:48 -06:00
parent af19166af2
commit ff1d34deec
5 changed files with 30 additions and 28 deletions

View File

@@ -15,6 +15,7 @@ class IMICFPS
shader.set_uniform("hasTexture", object.model.has_texture?)
# TODO: Upload and use lights
shader.set_uniform("lightPos", lights.first.position)
handleGlError
draw_model(object.model)