From ce85a9d0b19ee2f08566cac7af23bae8de0709ce Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Sat, 24 Aug 2024 16:01:03 +0800 Subject: [PATCH] feat: add getCameraFov to FilamentViewer --- thermion_dart/native/include/FilamentViewer.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/thermion_dart/native/include/FilamentViewer.hpp b/thermion_dart/native/include/FilamentViewer.hpp index 11e7a140..3d932483 100644 --- a/thermion_dart/native/include/FilamentViewer.hpp +++ b/thermion_dart/native/include/FilamentViewer.hpp @@ -86,7 +86,9 @@ namespace thermion_filament bool setCamera(EntityId asset, const char *nodeName); void setMainCamera(); EntityId getMainCamera(); - void setCameraFov(double fovDegrees, double aspect); + + float getCameraFov(bool horizontal); + void setCameraFov(double fovDegrees, bool horizontal); void createSwapChain(const void *surface, uint32_t width, uint32_t height); void destroySwapChain(); @@ -188,8 +190,6 @@ namespace thermion_filament Skybox *_skybox = nullptr; Texture *_iblTexture = nullptr; IndirectLight *_indirectLight = nullptr; - bool _recomputeAabb = false; - bool _actualSize = false; float _frameInterval = 1000.0 / 60.0;