 		result[1] = Math.atan2(-matrix[2], matrix[0])
 		result[0] = Math.atan2(-matrix[7], matrix[4])
 		result[2] = Math.asin(matrix[1])
-		
 	return result
-
 
 convertChildren = (children, parent, entities, compression) ->
 	for child in children

		data = JSON.stringify data, null, "\t"
	fs.writeFileSync file, data

convertColor = (hexColor) ->
	color =	for i in [1..7] by 2
		Math.round((parseInt hexColor.substr(i,2), 16)/2.55)/100

convertTextures = (material, textures) ->
	material.textures = []

basePath = ''
inputDir = ''


# File functions
copyShaderDir = ->
	from = path.resolve 'converter', 'shaders'
	to = path.resolve basePath, 'shaders'
