360 Secure SkillHub
360 安全技能中心

threejs-postprocessing

提供 Three.js 后处理管线指导,涵盖泛光、抗锯齿、环境光遮蔽、深度效果与渲染目标合成,强调版本与架构一致性、色彩空间、精度、深度、透明组合、性能预算、资源释放及设备验证。

分类:开发
cesartevisual
热度 0.00
最近更新 2026-11-12 05:18:10

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add cesartevisual/threejs-skills/threejs-postprocessing
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
threejs-postprocessing
description
Add or debug Three.js bloom, antialiasing, ambient occlusion, depth effects, and render-target composition.

Postprocessing Pipelines

Use the project's installed versions and existing architecture. These instructions supplement the user's task; they do not authorize unrelated changes or external actions.

Identify the existing renderer and composer family before adding passes. Three.js WebGL EffectComposer, pmndrs postprocessing, and WebGPU node pipelines have different contracts. Choose one coherent pipeline for the requested backend.

Write down the render order, intermediate color space, target precision, depth requirements, alpha behavior, and final display conversion. Apply tone mapping/output conversion once in the appropriate place. Compare against direct rendering before stacking effects.

Use HDR scene values and a deliberate threshold for selective bloom. Avoid making the entire interface glow to disguise weak lighting. Depth-dependent effects need compatible depth data and sensible camera planes. Antialiasing must fit the final composition rather than assuming canvas MSAA smooths offscreen targets.

Resize all passes and targets with viewport and quality changes. Budget full-resolution targets and reduce effect resolution or disable expensive passes on weaker devices. Preserve HTML readability and transparent-canvas composition if the design uses it.

Dispose owned passes and render targets, including replacement pipelines. Verify disabled/enabled comparison, bright and dark content, alpha edges, resize, and effect cost on the target device. Keep effect tuning separate from fixing incorrectly tagged textures.

API reference

Consult the official documentation for exact signatures and revision-specific behavior. If documentation access is unavailable, inspect installed types/source and state any remaining uncertainty.