How to use the filament.Camera$Fov function in filament

To help you get started, we’ve selected a few filament examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github google / filament / web / samples / webpack / src / app.ts View on Github external
resize() {
        const dpr = window.devicePixelRatio;
        const width = this.canvas.width = window.innerWidth * dpr;
        const height = this.canvas.height = window.innerHeight * dpr;
        this.view.setViewport([0, 0, width, height]);
        const aspect = width / height;
        const Fov = Filament.Camera$Fov, fov = aspect < 1 ? Fov.HORIZONTAL : Fov.VERTICAL;
        this.camera.setProjectionFov(45, aspect, 1.0, 10.0, fov);
    }
  }

filament

Real-time physically based rendering engine

Apache-2.0
Latest version published 3 months ago

Package Health Score

87 / 100
Full package analysis