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
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
2f16908992
feat! js_interop improvements
2025-05-07 17:06:38 +08:00
Nick Fisher
d5bffd5ad2
refactor
2025-03-18 23:15:13 +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
e91d1ca0aa
support 3D texture/2D texture arrays
2025-03-10 18:05:42 +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