fix animation + clipping

This commit is contained in:
Yeicor
2024-03-02 13:42:40 +01:00
parent 117c09b665
commit 1e0ed4cd80

View File

@@ -184,10 +184,10 @@ function onModelLoad() {
if (modelName !== "__helpers") { if (modelName !== "__helpers") {
// The back of the material only writes to the stencil buffer the areas // The back of the material only writes to the stencil buffer the areas
// that should be covered by the plane, but does not render anything // that should be covered by the plane, but does not render anything
let backMaterial = child.material.clone(); let backChild = child.clone();
backMaterial.side = BackSide; backChild.material = child.material.clone();
backMaterial.color = new Color(0.25, 0.25, 0.25) backChild.material.side = BackSide;
let backChild = new TMesh(child.geometry, backMaterial); backChild.material.color = new Color(0.25, 0.25, 0.25)
child.userData.backChild = backChild; child.userData.backChild = backChild;
childrenToAdd.push(backChild); childrenToAdd.push(backChild);
} }