API

Function ApplyPostProcess

  • Apply a post process to a texture

    Parameters

    • postProcessName: string

      name of the fragment post process

    • internalTexture: InternalTexture

      the texture to encode

    • scene: Scene

      the scene hosting the texture

    • Optionaltype: number

      type of the output texture. If not provided, use the one from internalTexture

    • OptionalsamplingMode: number

      sampling mode to use to sample the source texture. If not provided, use the one from internalTexture

    • Optionalformat: number

      format of the output texture. If not provided, use the one from internalTexture

    • Optionalwidth: number

      width of the output texture. If not provided, use the one from internalTexture

    • Optionalheight: number

      height of the output texture. If not provided, use the one from internalTexture

    Returns Promise<InternalTexture>

    a promise with the internalTexture having its texture replaced by the result of the processing