feat: 更新玻璃模型和英雄场景,优化贴纸层的渲染逻辑

This commit is contained in:
2026-09-01 00:16:54 +08:00
parent 744ec0becc
commit e4a6ea937a
3 changed files with 112 additions and 64 deletions
+4 -3
View File
@@ -323,9 +323,10 @@ export class StickerLayer {
);
mesh.frustumCulled = false;
mesh.count = 0;
// Layer 1: the glass models' FBO pass captures only this layer, so the
// falling stickers appear refracted through the hello/cursor glass.
mesh.layers.set(1);
// Default layer 0 (same as the original): visible to the main camera AND
// captured by the glass FBO pass, which temporarily renders with
// camera.layers.mask = 1 (layer 0 only) so glass meshes (layer 10) are
// excluded while stickers/background are included.
this.geometry = geometry;
this.material = material;