mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 23:52:35 +00:00
Use glLineWidth for wireframe rendering, use LoadingState for MapEditor
This commit is contained in:
@@ -155,6 +155,7 @@ class IMICFPS
|
||||
end
|
||||
|
||||
if window.config.get(:debug_options, :wireframe)
|
||||
glLineWidth(2)
|
||||
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE)
|
||||
Shader.active_shader.uniform_boolean("disableLighting", true)
|
||||
|
||||
@@ -163,6 +164,7 @@ class IMICFPS
|
||||
|
||||
Shader.active_shader.uniform_boolean("disableLighting", false)
|
||||
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL)
|
||||
glLineWidth(1)
|
||||
end
|
||||
|
||||
glDrawArrays(GL_TRIANGLES, 0, model.faces.count * 3)
|
||||
|
||||
Reference in New Issue
Block a user