Commit Graph

5661 Commits

Author SHA1 Message Date
0a4e8dd8ee auto-git:
[add] public/basis/
 [change] src/assets/gltf-model-import.ts
 [change] src/assets/ktx2-texture-support.ts
 [change] src/runtime-three/runtime-host.ts
 [change] src/viewport-three/viewport-host.ts
2026-05-19 13:28:18 +02:00
e16bda0ba4 Improve GLTF/GLB loading to support KTX2 textures 2026-05-19 13:26:12 +02:00
fa5d1bd417 Add shared KTX2 loader management utilities 2026-05-19 13:26:12 +02:00
31a337da6a Add test case to ensure terrain layers use swatch colors when no texture is found 2026-05-18 16:29:51 +02:00
df6f52464e Implement solid color fallback texture for terrain layers 2026-05-18 16:29:33 +02:00
574ca7ad68 Update material rendering tests to pass TextureLoader instance 2026-05-18 16:22:19 +02:00
2df1eb7eed auto-git:
[change] src/viewport-three/viewport-host.ts
 [change] tests/domain/build-runtime-scene.test.ts
 [change] tests/domain/custom-material.command.test.ts
 [change] tests/domain/delete-project-asset.test.ts
 [change] tests/domain/scene-document-validation.test.ts
 [change] tests/serialization/project-document-json.test.ts
 [change] tests/serialization/project-package.test.ts
 [change] tests/serialization/scene-document-json.test.ts
 [change] tests/unit/whitebox-material-inspector.integration.test.tsx
2026-05-18 16:21:15 +02:00
1fb96650c5 auto-git:
[change] src/app/App.tsx
 [change] src/app/app.css
 [change] src/assets/image-assets.ts
 [change] src/commands/create-custom-material-command.ts
 [change] src/commands/set-custom-material-texture-command.ts
 [change] src/commands/update-custom-material-command.ts
 [change] src/document/migrate-scene-document.ts
 [change] src/rendering/terrain-layer-material.ts
 [change] src/runtime-three/runtime-host.ts
2026-05-18 16:21:05 +02:00
977b4cccea auto-git:
[change] tests/serialization/scene-document-json.test.ts
2026-05-18 16:21:05 +02:00
447ae94612 auto-git:
[add] tests/unit/whitebox-material-inspector.integration.test.tsx
2026-05-18 16:19:21 +02:00
c8d89cf5d1 auto-git:
[add] tests/domain/material-rendering.test.ts
2026-05-18 16:19:21 +02:00
5e6ac133e5 Test custom material resolution in runtime scene build 2026-05-18 16:17:59 +02:00
275709a884 Add imports for custom material testing 2026-05-18 16:17:59 +02:00
f0e7179068 Update asset path in serialization tests 2026-05-18 16:17:59 +02:00
ac5c656b0e Test: Add serialization tests for asset bundling (images, GLTF) 2026-05-18 16:16:44 +02:00
5cdff4b080 Add validation tests for custom material properties and asset references 2026-05-18 16:16:30 +02:00
611ef16fd5 Test: Ensure project custom materials and texture assets round-trip correctly 2026-05-18 16:16:15 +02:00
96f22195cd Test: Ensure starter materials without 'kind' are correctly migrated to read-only starter materials 2026-05-18 16:16:05 +02:00
9d8cb46872 Add test case for round-tripping custom PBR materials with image texture references 2026-05-18 16:15:57 +02:00
360bff74d9 Update imports in serialization tests to include createCustomMaterialDef 2026-05-18 16:15:57 +02:00
21f4e62cec test(domain): Ensure custom materials clear texture references when assets are deleted 2026-05-18 16:15:19 +02:00
2c5a3dad1f feat(test): Add comprehensive unit tests for custom material commands 2026-05-18 16:15:19 +02:00
fc20f60b1b Add styling for map components, dense select inputs, and material items 2026-05-18 16:13:18 +02:00
910eeb26df auto-git:
[change] src/app/App.tsx
2026-05-18 16:13:07 +02:00
82b0327499 Implement custom material creation, update, and texture import logic 2026-05-18 16:12:18 +02:00
bf14a16669 Extract custom material reference when inspecting materials 2026-05-18 16:12:18 +02:00
26be5d6544 Filter project assets to include material map image assets 2026-05-18 16:12:18 +02:00
9c00ae4c7e Add isMaterialMapImageAsset helper function for asset type checking 2026-05-18 16:10:47 +02:00
518e40b79e Update fallback material name to "Default Whitebox" 2026-05-18 16:10:47 +02:00
5b9b00bfb6 Refactor material tile size calculation using resolveMaterialUvTileSizeMeters 2026-05-18 16:10:11 +02:00
697f134f26 Feat: Implement custom material support and texture slot handling 2026-05-18 16:09:58 +02:00
1310a3b491 auto-git:
[change] src/assets/image-assets.ts
2026-05-18 16:09:41 +02:00
82a6f7e9fd auto-git:
[add] src/commands/set-custom-material-texture-command.ts
2026-05-18 16:09:41 +02:00
7488a6c0f5 auto-git:
[add] src/commands/update-custom-material-command.ts
2026-05-18 16:09:41 +02:00
4d8ab49ea6 auto-git:
[add] src/commands/create-custom-material-command.ts
2026-05-18 16:09:41 +02:00
82d4b62f90 Enhance material registry parsing to support custom materials 2026-05-18 16:08:14 +02:00
a434c91b55 Refactor material texture cache management to use generic material logic and improve cleanup 2026-05-18 16:07:59 +02:00
41d09ebc18 Dynamically configure physical materials using custom material properties 2026-05-18 16:07:38 +02:00
a86261dd4c Improve road surface material creation to support custom material properties 2026-05-18 16:07:22 +02:00
c4b8a25f97 Enhance material configuration to support custom physical material properties 2026-05-18 16:07:06 +02:00
6f0d631cca Update material texture handling to use general material rendering types 2026-05-18 16:06:56 +02:00
849ce834ea auto-git:
[change] src/rendering/terrain-layer-material.ts
2026-05-18 16:06:56 +02:00
880bbf0d3d Update material creation to support custom material properties 2026-05-18 16:03:07 +02:00
ae42e4243a Add material texture cache cleanup method 2026-05-18 16:03:07 +02:00
b2530191c1 Refactor material cache cleanup and rebuild scene elements (terrains, roads, brushes) 2026-05-18 16:02:46 +02:00
8adcaefe4b Refactor texture set creation and disposal to use generic Material types 2026-05-18 16:02:19 +02:00
e35452d6d6 Update CachedMaterialTexture to use MaterialTextureSet 2026-05-18 16:02:18 +02:00
dcfb4ae05f Update material imports to use general rendering utilities 2026-05-18 16:01:39 +02:00
a49bb80849 Simplify texture disposal logic in material rendering 2026-05-18 16:01:11 +02:00
85cbf330bc Implement material signature and texture set management 2026-05-18 16:01:11 +02:00