tall-teacher-57409
05/16/2023, 5:09 AMhx
public override function onMouseWheel(deltaX:Float, deltaY:Float, deltaMode:MouseWheelMode) {
fov -= deltaY;
if (fov > 45.0) {
fov = 45.0;
}
if (fov < 1.0) {
fov = 1.0;
}
}
and im setting it here
hx
createPerspectiveZO(proj, fov * Math.PI / 180, Application.current.window.width / Application.current.window.height, 0.1, 100.0);
but moving the mouse wheel doesn't have any visual effect