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
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
8f1da5e7bd
separate skybox/ibl creation from KTX decoding
2025-06-11 09:48:17 +08:00
Nick Fisher
983d1373ba
logging
2025-06-09 18:13:35 +08:00
Nick Fisher
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)
2025-05-29 22:26:42 +08:00
Nick Fisher
beeb45609c
don't take reference to Builder
2025-05-29 18:57:01 +08:00
Nick Fisher
94eacec27e
Texture improvements: generateMipmaps(), add levels to createTexture, tests to check auto mip level selection
2025-05-29 18:38:57 +08:00
Nick Fisher
45c7831a17
replace libpng with stb_image for Image_decode
2025-05-28 21:51:56 +08:00
Nick Fisher
2f16908992
feat! js_interop improvements
2025-05-07 17:06:38 +08:00
Nick Fisher
6744c02019
refactoring
2025-03-19 17:54:43 +08:00
Nick Fisher
ac86dc7ad7
refactoring
2025-03-19 16:02:43 +08:00
Nick Fisher
231b03cd17
add indirect light methods
2025-03-17 22:36:53 +08:00
Nick Fisher
bff76f184e
add gltfio FFI methods and expose texture/render target creation directly
2025-03-17 18:53:36 +08:00
Nick Fisher
d710ab810c
expose more Texture/TextureSampler methods
2025-03-17 16:54:15 +08:00
Nick Fisher
a16c3c7580
add logging to setImage
2025-03-10 22:22:07 +08:00
Nick Fisher
e91d1ca0aa
support 3D texture/2D texture arrays
2025-03-10 18:05:42 +08:00
Nick Fisher
74ee35bfcd
use render thread methods for Texture/Image/TextureSampler
2025-03-07 14:52:45 +08:00
Nick Fisher
9abb192148
add setImage method to set texture image directly from buffer
2025-03-04 18:15:54 +08:00
Nick Fisher
fc7f5d7b93
create material for texture baking
...
textures can now be created manually and are no longer tracked by SceneManager (and therefore require manual tracking/disposal)
2025-03-04 14:52:48 +08:00
Nick Fisher
8d52690c97
fix texture/material methods
2025-03-03 15:52:03 +08:00
Nick Fisher
2a8931e1ac
add TTexture bindings with TextureFormat, PixelDataType and PixelDataFormat enums
2025-03-03 14:43:20 +08:00