Ver Fonte

Use doubles instead of floats;

bjorn há 8 anos atrás
pai
commit
f6edb08f34
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      maf.lua

+ 2 - 2
maf.lua

@@ -272,8 +272,8 @@ quat = {
 
 if ffi then
   ffi.cdef [[
-    typedef struct { float x, y, z; } vec3;
-    typedef struct { float x, y, z, w; } quat;
+    typedef struct { double x, y, z; } vec3;
+    typedef struct { double x, y, z, w; } quat;
   ]]
 
   vec3 = ffi.metatype('vec3', vec3)