Procházet zdrojové kódy

Add color and gamma attribute to json file

nagadomi před 9 roky
rodič
revize
986ef34ffc
1 změnil soubory, kde provedl 5 přidání a 0 odebrání
  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)