Commits

Cliff Biffle committed 27fef0a

Fixed a loss-of-precision warning in KVRenderer.

  • Participants
  • Parent commits 82cb6cd
  • Branches shaders

Comments (0)

Files changed (1)

   int vidx = 0;
   for (int y = 0; y < 480; y++) {
     for (int x = 0; x < 640; x++, vidx++) {
-      rays[vidx].x = (x / 640.);
-      rays[vidx].y = (y / 480.);
+      rays[vidx].x = (x / 640.f);
+      rays[vidx].y = (y / 480.f);
       rays[vidx].z = 4;
     }
   }