         let blue = CIVector(x: 0.0, y: lightBlue, z: 0.0, w: 0.0)
         //let alpha = CIVector(x: 0.0, y: 1.0, z: 0.0, w: 0.0)
         print("light: \(lightRed), \(lightGreen), \(lightBlue)")
-
+        
         filter.setValue(ciImage, forKey: "inputImage")
         filter.setValue(red, forKey: "inputRedCoefficients")
         filter.setValue(green, forKey: "inputGreenCoefficients")

import SceneKit

let toonFiles: [String] = [
    "art.scnassets/toon01.bmp",
    "art.scnassets/toon02.bmp",
    "art.scnassets/toon03.bmp",
    "art.scnassets/toon04.bmp",
    "art.scnassets/toon05.bmp",
    "art.scnassets/toon06.bmp",
    "art.scnassets/toon07.bmp",
    "art.scnassets/toon08.bmp",
    "art.scnassets/toon09.bmp",
    "art.scnassets/toon10.bmp"
]

internal class MMDReader: NSObject {

        var chars = [UInt8](repeating: 0, count: length)
        //self.binaryData.copyBytes(to: &chars, range: NSRange.init(location: self.pos, length: length))
        self.binaryData.copyBytes(to: &chars, from: Range(self.pos..<self.pos+length))
        
        if encoding != String.Encoding.utf16LittleEndian {
            for index in 0..<length {
                if (chars[index] == 0) {
