Fixed scaling lighting weirdness

This commit is contained in:
2018-03-18 11:53:41 -05:00
parent b35edcc7aa
commit 4d09dde058
4 changed files with 12 additions and 9 deletions

View File

@@ -69,8 +69,8 @@ class IMICFPS
gluLookAt(@camera.x,@camera.y,@camera.z, @angle_x,@angle_y,0, 0,1,0)
color = [@c1, @c2, @c3]
@model.draw(0, 0, 0, 0.005)
@model2.draw(5, 0, 0, 0.005)
@model.draw(0, 0, 0, 0.0009)
@model2.draw(5, 0, 0, 0.0009)
end
@@ -98,8 +98,8 @@ class IMICFPS
@angle_y = @angle_y.clamp(-360, 360)
self.mouse_x, self.mouse_y = Gosu.screen_width/2, Gosu.screen_height/2
@light_postion = [@camera.x, @camera.y, @camera.z, 1]
# @light_postion = [1.0, 0.249, 4.09, 1]
@light_postion = [@camera.x, @camera.y, @camera.z, 0]
# @light_postion = [0.0, 10, 0, 0]
@camera.x-=@speed if $window.button_down?(Gosu::KbRight)
@camera.x+=@speed if $window.button_down?(Gosu::KbLeft)