Interface IPostProcessModule

interface IPostProcessModule {
    bloomEffect: BloomEffect;
    composer: EffectComposer;
    getDepth: ((x, y) => Promise<number>);
    isComposerEnable: (() => boolean);
    outlineEffect: OutlineEffect;
    selectedEffect: OutlineEffect;
    setComposerEnable: ((b) => void);
    addEffectRenderPass(pass, orderIndex?): any;
    refreshEffectRenderPass(foreceUpdate?): any;
    removeEffectRenderPass(pass): any;
}

Implemented by

Properties

bloomEffect: BloomEffect

bloomEffect

composer: EffectComposer

效果合成器

getDepth: ((x, y) => Promise<number>)

根据屏幕坐标获取深度值

Type declaration

    • (x, y): Promise<number>
    • 根据屏幕坐标获取深度值

      Parameters

      • x: number
      • y: number

      Returns Promise<number>

isComposerEnable: (() => boolean)

效果合成器是否可用

Type declaration

    • (): boolean
    • 效果合成器是否可用

      Returns boolean

outlineEffect: OutlineEffect

OutlineEffect

selectedEffect: OutlineEffect

selectedEffect

setComposerEnable: ((b) => void)

设置效果合成器是否可用

Type declaration

    • (b): void
    • 设置效果合成器是否可用

      Parameters

      • b: boolean

      Returns void

Methods

  • 给效果合成器增加渲染通道

    Parameters

    • pass: Pass
    • Optional orderIndex: number

    Returns any

  • 刷新渲染通道 foreceUpdate是否强制更新

    Parameters

    • Optional foreceUpdate: boolean

    Returns any

  • 给效果合成器移除渲染通道

    Parameters

    Returns any