Added support for renderering multiple textures per Model

This commit is contained in:
2020-05-11 22:47:14 -05:00
parent d03c3ffcd8
commit f72a8d4c35
6 changed files with 35 additions and 18 deletions

View File

@@ -22,12 +22,18 @@ class IMICFPS
if path.is_a?(Array)
if path.size > 1
# Try loading from models textures folder
path = "#{GAME_ROOT_PATH}/assets/#{path.join("/")}"
else
path = path.first
end
end
# Try searching shared textures folder
unless File.exist?(path)
path = "#{IMICFPS.assets_path}/base/shared/textures/#{path.split("/").last}"
end
@path = path
if @path