three-base 2.0.45 → 2.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ThreeBase.js +1 -1
- package/ThreeBase.ts +1 -1
- package/package.json +1 -1
package/ThreeBase.js
CHANGED
|
@@ -405,7 +405,7 @@ export default class ThreeBase extends EventDispatcher {
|
|
|
405
405
|
this.renderer.render(this.scene, camera);
|
|
406
406
|
if (has_stroke_or_pass) {
|
|
407
407
|
// 查找需要绘制描边的对象,并且绘制描边
|
|
408
|
-
this.scene.
|
|
408
|
+
this.scene.traverseVisible(obj => {
|
|
409
409
|
stroke_pass(this.renderer, camera, obj, this.baseDepthTexture);
|
|
410
410
|
glow_pass(this.renderer, camera, obj, this.baseDepthTexture);
|
|
411
411
|
});
|
package/ThreeBase.ts
CHANGED
|
@@ -488,7 +488,7 @@ export default class ThreeBase extends EventDispatcher {
|
|
|
488
488
|
|
|
489
489
|
if (has_stroke_or_pass) {
|
|
490
490
|
// 查找需要绘制描边的对象,并且绘制描边
|
|
491
|
-
this.scene.
|
|
491
|
+
this.scene.traverseVisible(obj => {
|
|
492
492
|
stroke_pass(this.renderer, camera, obj, this.baseDepthTexture);
|
|
493
493
|
glow_pass(this.renderer, camera, obj, this.baseDepthTexture);
|
|
494
494
|
});
|