Broken mouse input, texture mapping issue persists.

This commit is contained in:
2018-03-19 22:08:20 -05:00
parent a46f3deff9
commit 89c84dbe39
11 changed files with 1768 additions and 7853 deletions

View File

@@ -141,9 +141,9 @@ class IMICFPS
def add_texture_coordinate(array)
texture = nil
if array.size == 4
texture = Vertex.new(Float(array[1]), Float(array[2]), Float(array[3]))
texture = Vertex.new(Float(array[1]), 1-Float(array[2]), Float(array[3]))
elsif array.size == 3
texture = Vertex.new(Float(array[1]), Float(array[2]), 0.0)
texture = Vertex.new(Float(array[1]), 1-Float(array[2]), 0.0)
else
raise
end