Added command to reload shaders at runtime, added support for shared scripts to Manifest, lights are now loadable from MapParser, misc changes.

This commit is contained in:
2020-03-24 09:51:20 -05:00
parent 2ad1385fb4
commit 578c00673d
18 changed files with 201 additions and 39 deletions

View File

@@ -13,7 +13,7 @@ class IMICFPS
end
def set_texture(texture_path)
@texture_id = Texture.new(texture_path).id
@texture_id = Texture.new(path: texture_path).id
end
end
end

View File

@@ -36,7 +36,7 @@ class IMICFPS
if id
_model = @model.objects.find { |o| o.id == id }
elsif name
_model = @model.objects.find { |o| o.id == id }
_model = @model.objects.find { |o| o.name == name }
else
raise "Must provide either an id: or name:"
end

View File

@@ -4,10 +4,6 @@ class IMICFPS
[:obj]
end
def initialize(model)
@model = model
end
def parse
lines = 0
list = File.read(@model.file_path).split("\n")