   int deviceIndex = 0;
 
   for (int i = 1; i < argc; i++) {
-    if (i + 1 < argc && (strcmp(argv[i], "-d") == 0 || strcmp(argv[i], "--device") == 0)) { deviceIndex = std::atoi(argv[i+1]); i++; }
-    else if (i + 1 < argc && strcmp(argv[i], "-nx") == 0) { nx = uint32_t(std::atoi(argv[i+1])); i++; }
-    else if (i + 1 < argc && strcmp(argv[i], "-ny") == 0) { ny = uint32_t(std::atoi(argv[i+1])); i++; }
-    else if (i + 1 < argc && strcmp(argv[i], "-nz") == 0) { nz = uint32_t(std::atoi(argv[i+1])); i++; }
-    else if (i + 1 < argc && strcmp(argv[i], "-n") == 0) { nx = uint32_t(std::atoi(argv[i+1])); ny = nx; nz = nx; i++; }
+    if (i + 1 < argc && (strcmp(argv[i], "-d") == 0 || strcmp(argv[i], "--device") == 0)) { deviceIndex = std::atoi(argv[i + 1]); i++; }
+    else if (i + 1 < argc && strcmp(argv[i], "-nx") == 0) { nx = uint32_t(std::atoi(argv[i + 1])); i++; }
+    else if (i + 1 < argc && strcmp(argv[i], "-ny") == 0) { ny = uint32_t(std::atoi(argv[i + 1])); i++; }
+    else if (i + 1 < argc && strcmp(argv[i], "-nz") == 0) { nz = uint32_t(std::atoi(argv[i + 1])); i++; }
+    else if (i + 1 < argc && strcmp(argv[i], "-n") == 0) { nx = uint32_t(std::atoi(argv[i + 1])); ny = nx; nz = nx; i++; }
     else if (i + 1 < argc && strcmp(argv[i], "-f") == 0) {
       if (strcmp(argv[i + 1], "uint8") == 0) { format = FieldFormat::UInt8; }
       else if (strcmp(argv[i + 1], "uint16") == 0) { format = FieldFormat::UInt16; }


namespace {

  FieldFormat format = FieldFormat::UInt8;
  uint32_t nx = 128;
  uint32_t ny = 128;
  uint32_t nz = 128;

  std::vector<char> scalarField_host;


uniform layout(location=1) mat4 MVP;

void main() {
  //normal = mat3(MV)*inNormal;
  gl_Position = MVP * vec4(inPosition, 1);
  //gl_Position = vec4(inPosition, 1);
}
