1
0
Fork 0
mirror of synced 2024-06-01 10:39:30 +12:00

Add color and gamma attribute to json file

This commit is contained in:
nagadomi 2015-11-08 22:12:48 +09:00
parent 7d67afb982
commit 986ef34ffc

View file

@ -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)