Commit Graph

456 Commits

Author SHA1 Message Date
Nick Fisher ef7ba24ecc don't fade grid axes depending on camera angle 2025-07-09 10:46:37 +08:00
Nick Fisher b4ea80a84c don't allow creating instances for GridOverlay asset and only expose a single entity 2025-07-07 17:21:43 +08:00
Nick Fisher 003fd59269 (web) add -Wno-invalid-specialization 2025-07-03 16:23:24 +08:00
Nick Fisher c7dfd293e2 (web) add cplusplus guards for material header 2025-07-03 14:22:26 +08:00
Nick Fisher ddc5af376a update grid material 2025-07-03 11:54:06 +08:00
Nick Fisher f706f54eb2 update outline material 2025-07-03 11:53:06 +08:00
Nick Fisher c12ec892f3 add bbCenter to outline material 2025-07-03 11:52:50 +08:00
Nick Fisher c0cc9fc26a use premultiplied alpha for grid material 2025-07-01 16:59:48 +08:00
Nick Fisher 73e6597301 replace overlay render target when viewport resizes 2025-07-01 16:58:46 +08:00
Nick Fisher e731556e6f add scale parameter to outline material 2025-07-01 14:28:19 +08:00
Nick Fisher f9a7ac49a1 expose View methods for transparent picking 2025-07-01 14:20:02 +08:00
Nick Fisher 4b9870244a fix material headers for web 2025-07-01 13:16:07 +08:00
Nick Fisher e984d8cf71 don't pass View to readPixels (only width/height, x/y offsets needed, and optionally rendertarget) 2025-07-01 13:03:06 +08:00
Nick Fisher a9b5ca786e update grid material 2025-07-01 12:12:33 +08:00
Nick Fisher 9a5b737391 move outline material to embedded binary 2025-07-01 11:06:51 +08:00
Nick Fisher 3ca1cc0747 add OverlayComponentManager destructor 2025-07-01 10:51:00 +08:00
Nick Fisher 0c2e4e6faa (material) set gridColor when instantiating grid material 2025-07-01 10:42:42 +08:00
Nick Fisher e50a1b6002 implement RenderTicker::removeSwapChain 2025-07-01 10:42:21 +08:00
Nick Fisher 2545bbbd35 move set/remove stencilHighlight to View and implement via OverlayManager 2025-07-01 10:22:15 +08:00
Nick Fisher 584abd6086 on macOS, always create stencil buffer by default 2025-07-01 10:21:39 +08:00
Nick Fisher 4b9c20eaa6 move set/remove stencilHighlight to View and implement via OverlayManager 2025-07-01 10:15:41 +08:00
Nick Fisher 0f9d2492e6 move set/remove stencilHighlight to View and implement via OverlayManager 2025-07-01 10:13:47 +08:00
Nick Fisher 96ef070be7 add linear_depth material 2025-07-01 10:08:36 +08:00
Nick Fisher 506d2fb562 expose Material->getFeautureLevel 2025-07-01 10:07:35 +08:00
Nick Fisher 0b18caf4ff expose Engine->getSupportedFeatureLevel() 2025-07-01 10:07:10 +08:00
Nick Fisher feeb757a10 use render thread method for creating grid overlay & reinstate overlay tests 2025-06-27 13:34:01 +08:00
Nick Fisher ccc0a53abc rename numInstances to initialInstances in loadGltf methods.
when initialInstances > 0, don't wait for createInstance to be called to create corresponding GltfSceneAsset
2025-06-26 10:11:29 +08:00
Nick Fisher 1fe1889fa2 remove STB_IMAGE_IMPLEMENTATION (this is already linked) 2025-06-24 15:30:39 +08:00
Nick Fisher 21ccb52ab9 fix missing includes for Linux compatibility 2025-06-24 12:30:33 +08:00
Nick Fisher d41f29c06d (web) after capture is called on emscripten builds, request the render thread to exit/resume to yield to the browser so the frame is committed 2025-06-23 12:43:40 +08:00
Nick Fisher e27be37378 add mRestart flag to immediately request the thread exits to force a commit frame 2025-06-23 12:43:03 +08:00
Nick Fisher a8a7f11d44 add mRestart flag to immediately request the thread exits to force a commit frame 2025-06-23 12:42:53 +08:00
Nick Fisher 668c001b49 add inUse flag to assist with recycling gltf instances 2025-06-23 12:21:52 +08:00
Nick Fisher e503dd2e8b docstrings for GltfSceneAsset destroyInstance 2025-06-23 12:21:21 +08:00
Nick Fisher e1cb517417 allow creating more glTF instances than pre-allocated 2025-06-20 18:46:36 +08:00
Nick Fisher 64eeacc029 add missing support for Camera_getCullingProjectionMatrix 2025-06-20 12:42:32 +08:00
Nick Fisher a823718bcd fix incorrect indexing for material instances when creating an instance 2025-06-19 10:57:54 +08:00
Nick Fisher 86e0f7740f add Fence_waitAndDestroyRenderThread 2025-06-18 13:03:34 +08:00
Nick Fisher a5a3c73708 add Fence_waitAndDestroy to TEngine.h 2025-06-18 13:02:59 +08:00
Nick Fisher a44cb9a9cc add Fence_waitAndDestroy to TEngine.h 2025-06-18 13:02:48 +08:00
Nick Fisher 42f9538040 implement TSkybox and use setColor method to set the background color, rather than the image 2025-06-18 13:01:25 +08:00
Nick Fisher 65ca59ff22 merge native setImage with setImageWithDepth 2025-06-17 13:25:53 +08:00
Nick Fisher 388b8556e5 fix incorrect index when creating texture from Ktx1Bundle 2025-06-12 11:54:10 +08:00
Nick Fisher 59d9d87d2f remove unused headers 2025-06-12 11:47:23 +08:00
Nick Fisher 47807d560f separate native methods for creating IBL from irradiance texture and harmonics 2025-06-12 11:33:38 +08:00
Nick Fisher ad26fc4563 add Dart IndirectLight and Ktx1Bundle classes, and separate KTX decoding from skybox/IBL creation 2025-06-12 11:31:44 +08:00
Nick Fisher f252c86152 update image material to support cubemaps 2025-06-12 08:40:28 +08:00
Nick Fisher 32fe54ac09 (web) on Emscripten builds, use static global wrapper function for texture upload complete callbacks (this is needed because all callbacks need to be proxied to the main thread 2025-06-11 11:08:13 +08:00
Nick Fisher 8998f1f740 add RenderableManager_getBoundingBox 2025-06-11 09:50:48 +08:00
Nick Fisher 8f1da5e7bd separate skybox/ibl creation from KTX decoding 2025-06-11 09:48:17 +08:00