mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 23:52:35 +00:00
Updates
This commit is contained in:
@@ -46,6 +46,7 @@ class IMICFPS
|
||||
glColorMaterial(GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE)
|
||||
glShadeModel(GL_FLAT) unless o.faces.first[4]
|
||||
glShadeModel(GL_SMOOTH) if o.faces.first[4]
|
||||
# glBegin(GL_TRIANGLES) # begin drawing model
|
||||
glBegin(GL_TRIANGLES) # begin drawing model
|
||||
o.faces.each do |vert|
|
||||
vertex = vert[0]
|
||||
|
||||
@@ -96,7 +96,7 @@ 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 = [@camera.x, @camera.y, @camera.z, 1]
|
||||
# @light_postion = [1.0, 0.249, 4.09, 1]
|
||||
|
||||
@camera.x-=@speed if $window.button_down?(Gosu::KbRight)
|
||||
|
||||
Reference in New Issue
Block a user