Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
improve compression base color map capture regex
Browse files Browse the repository at this point in the history
  • Loading branch information
dinomut1 committed May 30, 2024
1 parent c4817c1 commit 41733ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export function getModelResources(entity: Entity, defaultParms: ModelTransformPa
if (/normal/i.test(texture.name)) {
descriptor = 'normalMap'
}
if (/basecolor/i.test(texture.name) || /diffuse/i.test(texture.name)) {
if (/base[-_\s]*color/i.test(texture.name) || /diffuse/i.test(texture.name)) {
descriptor = 'baseColorMap'
}
return [image, descriptor]
Expand Down

0 comments on commit 41733ef

Please sign in to comment.