Commit Graph

80 Commits

Author SHA1 Message Date
Nick Fisher
03ab646713 feat: more work on multiple views/swapchains 2024-10-23 14:45:04 +08:00
Nick Fisher
a5ca6132f0 refactor!: refactor to support multiple Views/Render Targets 2024-10-23 14:45:04 +08:00
Nick Fisher
ef5b12af4f feat!: big refactor to support multiple swapchains 2024-10-23 14:45:04 +08:00
Nick Fisher
11f668e163 chore: don't keep superfluous handle to rtDepth and rtColor 2024-10-23 14:45:04 +08:00
Nick Fisher
e2eb1137d2 refactor!: remove RenderThread methods no longer needed 2024-10-23 14:45:03 +08:00
Nick Fisher
b5d47ae2a5 fix!: replace queuePosition/Rotation with queueTransforms 2024-10-23 14:45:03 +08:00
Nick Fisher
c2b1d8660e fix!: replace queuePosition/Rotation with queueTransforms 2024-10-23 14:45:03 +08:00
Nick Fisher
b2024d38b5 feat: add uvScale to unlit material 2024-10-23 14:45:03 +08:00
Nick Fisher
34c0d87703 feat!: set baseColorIndex to -1 by default in unlit materialss 2024-10-23 14:45:03 +08:00
Nick Fisher
41432a07ed chore: getter for native camera view matrix 2024-10-23 14:45:03 +08:00
Nick Fisher
2408104bd0 more camera work 2024-10-23 14:45:03 +08:00
Nick Fisher
d1cd68cda6 more camera work 2024-10-23 14:45:03 +08:00
Nick Fisher
256d5d4eb1 feat: set camera model matrix directly 2024-10-23 14:45:03 +08:00
Nick Fisher
758704d464 renaming/refactoring and allow creating new cameras 2024-10-23 14:45:02 +08:00
Nick Fisher
9639caf019 feat: expose more camera methods 2024-10-23 14:45:02 +08:00
Nick Fisher
ed5f23faf2 introduce stronger native typing, camera projection/culling methods, update tests 2024-10-23 14:45:00 +08:00
Nick Fisher
ab1de78b74 rename from *FFI to *RenderThread, return bool from render() to check frame timings, update render loop to wait on condition variable, add requestFrame() method 2024-10-23 14:45:00 +08:00
Nick Fisher
7bcfd0f805 rename CameraPtr to TCamera and use named arguments for setCameraLensProjection 2024-10-23 14:45:00 +08:00
Nick Fisher
3e1b151488 move MaterialInstance methods to own class 2024-10-23 14:45:00 +08:00
Nick Fisher
820ad7cb28 rename setLayerEnabled to setLayerVisibility, add setVisibilityLayer method 2024-10-23 14:45:00 +08:00
Nick Fisher
df0a744cc9 add setMaterialDepthWrite method 2024-10-23 14:44:59 +08:00
Nick Fisher
b00aa0696f remove image.mat from LFS 2024-10-23 14:44:59 +08:00
Nick Fisher
f9dfb68e9f update built unlit material 2024-10-23 14:44:59 +08:00
Nick Fisher
208eb4ad06 remove old default paramsf rom UnlitMaterialProvider 2024-10-23 14:44:59 +08:00
Nick Fisher
5608abdf79 add setMaterialProperty for int, add create_unlit_material_instance, use double4 instead of float4 2024-10-23 14:44:59 +08:00
Nick Fisher
834726b49e set default layer for loadGlb to 0,. add setMaterialProperty for int 2024-10-23 14:44:58 +08:00
Nick Fisher
204f8204f1 change float4 to double4 2024-10-23 14:44:58 +08:00
Nick Fisher
22f97beeaa update unproject texture to accept input texture 2024-10-23 14:44:58 +08:00
Nick Fisher
9f98f21d38 update unproject texture to accept input texture 2024-10-23 14:44:58 +08:00
Nick Fisher
40a7f86cef fixes for createMaterialInstance 2024-10-23 14:44:57 +08:00
Nick Fisher
9d5488b82d add priority/layer to load_glb_from_buffer 2024-10-23 14:44:57 +08:00
Nick Fisher
a2618dab31 native types, add create/destroy material instance, add SceneManager::LAYERS enum 2024-10-23 14:44:57 +08:00
Nick Fisher
bb46241f98 refactor: native types 2024-10-23 14:44:57 +08:00
Nick Fisher
ff7fee2d94 refactor: native types 2024-10-23 14:44:57 +08:00
Nick Fisher
9a23a24bd3 refactor: move native types to own header, add methods for create/destroy material instance, add priority/layer to load_glb_from_buffer 2024-10-23 14:44:56 +08:00
Nick Fisher
60dbc4ffd6 add texture methods (including unproject) 2024-10-23 14:44:39 +08:00
Nick Fisher
773077ab9c don't store gizmo material in LFS 2024-10-23 14:44:39 +08:00
Nick Fisher
f18f04734d allow setting material property by name 2024-10-23 14:44:38 +08:00
Nick Fisher
2eb7cc286b remove using namespace filament* 2024-10-23 14:44:38 +08:00
Nick Fisher
e07a4fac97 explicitly mark type of Camera for Gizmo 2024-10-23 14:44:37 +08:00
Nick Fisher
76428b2e70 use opaque CameraPtr to set camera matrices/properties/etc 2024-10-23 14:44:37 +08:00
Nick Fisher
32591f5af7 remove camera methods from FilamentViewer 2024-10-23 14:44:37 +08:00
Nick Fisher
14f62a6427 remove update_viewport_and_camera_projection_ffi 2024-10-23 14:44:36 +08:00
Nick Fisher
d6c3badbba remove unused get_camera_position method 2024-10-23 14:44:36 +08:00
Nick Fisher
c8f6c2582b add createGeometryWithNormals to SceneManager 2024-10-23 14:44:36 +08:00
Nick Fisher
3b5c91b15c add normals to CustomGeometry interface 2024-10-23 14:44:36 +08:00
Nick Fisher
05305aa27d add create_geometry_with_normals method 2024-10-23 14:44:36 +08:00
Nick Fisher
7269a5e527 add create_geometry_with_normals_ffi method, switch load_glb_from_buffer type to uint8_t for Dart leaf compat and add keepData param 2024-10-23 14:44:36 +08:00
Nick Fisher
ff304ad3d4 feat: add getAncestor method 2024-10-23 14:44:35 +08:00
Nick Fisher
2ccbb4c0c4 chore: remove createGeometry method from FilamentViewer, set default view blend mode 2024-10-23 14:44:34 +08:00