Browse Source

Increase zoom factor in `core_2d_camera.c`

This compensate for slower zoom speed due to log scaling
Fabrizio Pietrucci 6 months ago
parent
commit
e140aca1b5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/core/core_2d_camera.c

+ 1 - 1
examples/core/core_2d_camera.c

@@ -83,7 +83,7 @@ int main(void)
 
         // Camera zoom controls
         // Uses log scaling to provide consistent zoom speed
-        camera.zoom = expf(logf(camera.zoom) + ((float)GetMouseWheelMove()*0.05f));
+        camera.zoom = expf(logf(camera.zoom) + ((float)GetMouseWheelMove()*0.1f));
 
         if (camera.zoom > 3.0f) camera.zoom = 3.0f;
         else if (camera.zoom < 0.1f) camera.zoom = 0.1f;