4 Commits
Author SHA1 Message Date
adminandClaude Fable 5 eab5081354 Add model import support to Poly Haven importer
Browser gets Textures/Models tabs (per-type catalog cache). Model file
JSON is parsed into per-set texture maps (generic set-prefix matching),
FBX is downloaded with resolution fallback, one URP/Lit material is
built per set via the shared PbrMaterialBuilder (which now returns the
created Material), and new ModelImportUtil remaps FBX material slots to
the built materials by set-name matching.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-16 16:43:24 +02:00
adminandClaude Fable 5 fb4098b9f8 Add ambientCG importer and extract shared web-asset import framework
New Tools/ambientCG Importer window (catalog browser, ZIP download with
selective map extraction, URP/Lit material build). Generic pieces moved
from the PolyHaven tool into Editor/WebAssets (EditorWebRequest,
PbrMapType, PbrMaterialBuilder, ImportUtil, AssetBrowserGrid); PolyHaven
API/window now delegate to the shared code, behavior unchanged.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-16 15:27:02 +02:00
adminandClaude Fable 5 dc731a9941 Auto-delete consumed roughness source after metallic-smoothness repack
PolyHavenMaterialBuilder now removes the separate roughness map (asset +
meta) once its data has been packed into the generated
_metallic_smoothness.png; skipped when the repack fails or roughness came
from the ARM texture.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-16 14:47:49 +02:00
adminandClaude Fable 5 897ba57599 Add Poly Haven importer editor tool
Tools/Poly Haven Importer: fetches asset metadata/files via the public
Poly Haven API, browsable texture catalog with searchable thumbnail
grid, per-map resolution selection, async non-blocking downloads, and
automatic URP/Lit material build (roughness->smoothness repacking into
_MetallicGlossMap, ARM unpacking as fallback for missing AO/Rough/Metal
maps, linear import settings for data textures). Thumbnails survive
play mode via HideAndDontSave + destroyed-cache recovery.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-16 14:29:38 +02:00