mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 15:42:35 +00:00
Updates
This commit is contained in:
@@ -46,6 +46,7 @@ class IMICFPS
|
|||||||
glColorMaterial(GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE)
|
glColorMaterial(GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE)
|
||||||
glShadeModel(GL_FLAT) unless o.faces.first[4]
|
glShadeModel(GL_FLAT) unless o.faces.first[4]
|
||||||
glShadeModel(GL_SMOOTH) if o.faces.first[4]
|
glShadeModel(GL_SMOOTH) if o.faces.first[4]
|
||||||
|
# glBegin(GL_TRIANGLES) # begin drawing model
|
||||||
glBegin(GL_TRIANGLES) # begin drawing model
|
glBegin(GL_TRIANGLES) # begin drawing model
|
||||||
o.faces.each do |vert|
|
o.faces.each do |vert|
|
||||||
vertex = vert[0]
|
vertex = vert[0]
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ class IMICFPS
|
|||||||
@angle_y = @angle_y.clamp(-360, 360)
|
@angle_y = @angle_y.clamp(-360, 360)
|
||||||
self.mouse_x, self.mouse_y = Gosu.screen_width/2, Gosu.screen_height/2
|
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]
|
# @light_postion = [1.0, 0.249, 4.09, 1]
|
||||||
|
|
||||||
@camera.x-=@speed if $window.button_down?(Gosu::KbRight)
|
@camera.x-=@speed if $window.button_down?(Gosu::KbRight)
|
||||||
|
|||||||
@@ -1,6 +1,16 @@
|
|||||||
# Blender MTL File: 'cube.blend'
|
# Blender MTL File: 'cube.blend'
|
||||||
# Material Count: 4
|
# Material Count: 4
|
||||||
|
|
||||||
|
newmtl Material
|
||||||
|
Ns 96.078431
|
||||||
|
Ka 1.000000 1.000000 1.000000
|
||||||
|
Kd 0.000000 0.800000 0.000071
|
||||||
|
Ks 0.500000 0.500000 0.500000
|
||||||
|
Ke 0.000000 0.000000 0.000000
|
||||||
|
Ni 1.000000
|
||||||
|
d 1.000000
|
||||||
|
illum 2
|
||||||
|
|
||||||
newmtl Material.001
|
newmtl Material.001
|
||||||
Ns 96.078431
|
Ns 96.078431
|
||||||
Ka 1.000000 1.000000 1.000000
|
Ka 1.000000 1.000000 1.000000
|
||||||
@@ -30,11 +40,3 @@ Ke 0.000000 0.000000 0.000000
|
|||||||
Ni 1.000000
|
Ni 1.000000
|
||||||
d 1.000000
|
d 1.000000
|
||||||
illum 2
|
illum 2
|
||||||
|
|
||||||
newmtl None
|
|
||||||
Ns 0
|
|
||||||
Ka 0.000000 0.000000 0.000000
|
|
||||||
Kd 0.8 0.8 0.8
|
|
||||||
Ks 0.8 0.8 0.8
|
|
||||||
d 1
|
|
||||||
illum 2
|
|
||||||
|
|||||||
8893
objects/cube.obj
8893
objects/cube.obj
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user