Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

fix(pipeline): an imported skin no longer blurs its diffuse light per colour channel

yhh7b590c05c2d9
diff --git a/pipeline/src/assets/modelImport.ts b/pipeline/src/assets/modelImport.ts
index f13c618fd..1b8cb04a3 100644
--- a/pipeline/src/assets/modelImport.ts
+++ b/pipeline/src/assets/modelImport.ts
@@ -727,6 +727,7 @@ function characterProperties(shading: CharacterShading, material: ImportedMateri
}
if (shading === 'skin') {
properties.u_sssWrap = 0; properties.u_translucency = 0; properties.u_lobe2 = 0; properties.u_fuzz = 0;
+ properties.u_blurRed = 0; properties.u_blurGreen = 0;
}
if (shading === 'hair') {
properties.u_translucency = 0; properties.u_shiftAmount = 0; properties.u_rootDark = 0;