如视 Five SDK
    Preparing search index...

    Class FlowingFireworks3DPass

    FlowingFireworks3DPass

    与 FlowingLight3DPass 配套使用:在每条流光线条的「尾部位置」持续喷射出 烟花状向四周发散的粒子。粒子的运动周期、尾部位置计算与 FlowingLight3DPass 完全一致(共用 points / totalLength / duration / startTime / tailLengthRatio), 因此把本 Pass 与 FlowingLight3DPass 配置同样的线条数据即可获得「流光拖尾烟花」效果。

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    clear: boolean = false
    dependencies: ("color" | "depth" | "normal")[]
    enabled: boolean = true
    gbuffer: Map<"color" | "depth" | "normal", Texture>

    G-Buffer 纹理集合 包含 depth、normal、color 等纹理 由 EffectComposer 在 render 时注入

    needsSwap: boolean = true
    renderToScreen: boolean = true
    FullScreenQuad: typeof FullScreenQuad = FullScreenQuad

    Methods

    • Returns void

    • 按 id 移除一条或多条线,返回实际移除的数量

      Parameters

      • ...ids: string[]

      Returns number

    • Parameters

      • renderer: WebGLRenderer
      • writeBuffer: WebGLRenderTarget
      • readBuffer: WebGLRenderTarget
      • deltaTime: number
      • Optional_maskActive: boolean

      Returns void

    • 通过 id 修改单条线的参数(部分更新)。 大多数字段(points、color、totalLength、duration 等)会在下一帧发射时即时生效, 无需重建;仅当 particleCount 改变时才会重建粒子缓冲。

      Parameters

      Returns void

    • Parameters

      • width: number
      • height: number

      Returns void