Просмотр исходного кода

Add color and gamma attribute to json file

nagadomi 9 лет назад
Родитель
Сommit
986ef34ffc
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      tools/export_model.lua

+ 5 - 0
tools/export_model.lua

@@ -24,6 +24,11 @@ function export(model, output)
       }
       table.insert(jmodules, jmod)
    end
+   jmodules[1].color = "RGB"
+   jmodules[1].gamma = 0
+   jmodules[#jmodules].color = "RGB"
+   jmodules[#jmodules].gamma = 0
+   
    local fp = io.open(output, "w")
    if not fp then
       error("IO Error: " .. output)