Fixed immediate mode lighting, improved-ish modern gl lighting

This commit is contained in:
2019-12-09 11:48:54 -06:00
parent ff1d34deec
commit e4333a82b8
6 changed files with 146 additions and 27 deletions

View File

@@ -30,7 +30,7 @@ class IMICFPS
# TODO: Load lights from MapLoader
add_light(Light.new(id: available_light, position: Vector.new(30, 10.0, 30)))
# add_light(Light.new(id: available_light, x: 0, y: 100, z: 0, diffuse: Color.new(1.0, 0.5, 0.1)))
add_light(Light.new(id: available_light, position: Vector.new(0, 100, 0), diffuse: Color.new(1.0, 0.5, 0.1)))
end
def data