mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 15:42:35 +00:00
Fixed scaling lighting weirdness
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user