feat: 更新玻璃模型和英雄场景,优化贴纸层的渲染逻辑
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user