Skip to content

Commit 1574189

Browse files
committed
fix #122
1 parent 37817dd commit 1574189

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/library/create-texture-atlas.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,12 @@ export const createTextureAtlasBrowser = async ({ backColor, meshes, atlasSize,
352352
switch (name) {
353353
case 'diffuse':
354354
clearColor = material.color || backColor;
355-
if (material.uniforms?.litFactor)
355+
if (material.uniforms?.litFactor){
356356
multiplyColor = material.uniforms.litFactor.value;
357+
}
358+
else{
359+
multiplyColor = material.color;
360+
}
357361
break;
358362
case 'normal':
359363
clearColor = new THREE.Color(0x8080ff);

0 commit comments

Comments
 (0)