mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: code split build assets
This commit is contained in:
1 parent
5a25f335cd
commit
1f39ecefe4
11 files changed
+492
-375
No files matched your search
@@ -43,7 +43,7 @@ const omitMeshNames = {
|
||||
export async function extractModel(
|
||||
data: string,
|
||||
path: string,
|
||||
baseColor: Vector3Tuple,
|
||||
baseColor?: Vector3Tuple,
|
||||
) {
|
||||
const sc2Path = `${data}/3d/${path}.sc2.dvpl`;
|
||||
const scgPath = `${data}/3d/${path}.scg.dvpl`;
|
||||
@@ -85,7 +85,9 @@ export async function extractModel(
|
||||
.setImage(
|
||||
await readTexture(
|
||||
`${data}/3d/${dirname(path)}/${textures.albedo}`,
|
||||
{ mutation: TextureMutation.BaseColor, baseColor },
|
||||
baseColor
|
||||
? { mutation: TextureMutation.BaseColor, baseColor }
|
||||
: undefined,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user