d0da7f49f3
when destroying a SceneAsset, if the object is an instance, call destroyInstance on the owner of instance rather than deleting the object directly
Nick Fisher2025-06-04 10:48:07 +08:00
886a4a37aa
(test) log to stdout by default when using TestHelper
Nick Fisher2025-06-04 10:46:52 +08:00
6db82d00c2
don't call removeAnimationComponent in viewer (moved to FilamentApp.destroyAsset)
Nick Fisher2025-06-03 16:40:50 +08:00
0fb4fd0004
(web) use mimalloc as default allocator on emscripten builds and set SAFE_HEAP to 1 by default for debug builds
Nick Fisher2025-06-03 16:40:12 +08:00
e147e59d8d
don't call endFrame() unless beginFrame() was called only use condition_variable on non-emscripten builds
Nick Fisher2025-06-03 16:39:04 +08:00
28aef7e5cc
when destroying assets, remove animation component in FilamentApp, not viewer
Nick Fisher2025-06-02 14:58:32 +08:00
b1617004d7
add missing EMSCRIPTEN_KEEPALIVE from Texture_generateMipMapsRenderThread
Nick Fisher2025-06-02 14:58:11 +08:00
32b6b1c227
(flutter) add zero size check in TextureWidget
Nick Fisher2025-06-02 12:58:53 +08:00
1c500fe925
require dispose() on InputHandlerDelegate and update sample implementations
Nick Fisher2025-06-02 12:58:26 +08:00
3fd15ab91b
(flutter) add zero size check for texture descriptors
Nick Fisher2025-06-02 12:58:11 +08:00
2191f9d44b
require dispose() on InputHandlerDelegate and update sample implementations
Nick Fisher2025-06-02 12:57:45 +08:00
87b63301f2
require dispose() on InputHandlerDelegate and update sample implementations
Nick Fisher2025-06-02 12:57:22 +08:00
86894cf583
add alpha/requireAlpha argument when decoding images remove size checks from setImage (we are assuming the caller knows the correct size) This also adds some monkey-patch methods to js_interop to convert Float32List to a UInt8List (but use this with care, because it will only work for emscripten-allocated objects)
Nick Fisher2025-05-29 22:26:42 +08:00
c789e75af5
(web) fix casing for generateMipMaps
Nick Fisher2025-05-29 19:27:22 +08:00
94eacec27e
Texture improvements: generateMipmaps(), add levels to createTexture, tests to check auto mip level selection
Nick Fisher2025-05-29 18:38:57 +08:00
11f7ac459b
separate material_tests into ubershader & unlit
Nick Fisher2025-05-29 18:02:18 +08:00
d799ef0ca0
comment out Dart action (needs software rasterizer or self-hosted runner with GPU) add basic flutter build for example projects
Nick Fisher2025-05-23 17:33:37 +08:00
5a72bc835d
use flutter pub get before attempting to run with dart
Nick Fisher2025-05-23 17:11:52 +08:00
1765350cbe
update GitHub actions to run tests on macos
Nick Fisher2025-05-23 16:50:13 +08:00
94683ab5a9
(test) ensure aspect ratio is correctly set if viewport is not square
Nick Fisher2025-05-23 16:28:32 +08:00
5a74345fe1
specify texture flags for render target in flutter
Nick Fisher2025-05-23 16:28:09 +08:00
195a625738
when getMaterialInstance/setMaterialInstance are called, if entity is not renderable, return false if no entity is passed, iterate through all entities and use the first renderable entity
Nick Fisher2025-05-23 16:27:38 +08:00
725f36a860
(test) use RGBA32F when creating render target in TestHelper
Nick Fisher2025-05-22 15:23:30 +08:00
96694be017
remove register/unregister swapchain/view in TextureProjection since we are rendering each view separately, this is no longer necessary
Nick Fisher2025-05-22 15:22:15 +08:00
a31f11151e
check for beginFrame returning false in project() and correctly calculate numChannels/channelSize
Nick Fisher2025-05-22 15:19:03 +08:00
10136c8cde
use flush() instead of directly calling executeRenderThread (wasm) or flushAndWait (native)
Nick Fisher2025-05-22 15:18:19 +08:00
c712804bb1
add createLight method to FilamentApp
Nick Fisher2025-05-22 15:09:36 +08:00
1373ce5a32
use flush() instead of manually invoking different methods for wasm/native
Nick Fisher2025-05-22 15:08:29 +08:00
3007dec127
TextureProjection now makes a separate render pass for each View. This is needed because changing material properties between beginFrame/endFrame is unsupported
Nick Fisher2025-05-22 15:03:06 +08:00