Class PostEffectOutline

Hierarchy

  • PostEffect$1
    • PostEffectOutline

Constructors

Properties

colorData: Float32Array
depthMap: any
device: GraphicsDevice

The graphics device of the application.

needsDepthBuffer: boolean

The property that should to be set to true (by the custom post effect) if a depth map is necessary (default is false).

outlineLayer: Layer
shader: Shader

The shader definition for the fullscreen quad. Needs to be set by the custom post effect (default is null). Used when calling drawFullscreenQuad.

texture: Texture
vertexBuffer: VertexBuffer

The vertex buffer for the fullscreen quad. Used when calling drawFullscreenQuad.

Methods

  • 渲染函数,由引擎自动每帧调用

    Parameters

    • inputTarget: RenderTarget

      引擎输入renderTaget,为当前的渲染画面

    • outputTarget: RenderTarget

      引擎输出的renderTarget,即经过后期处理之后的画面

    • rect: Vec4

      引擎传入的矩形,用来表示整个屏幕的范围

    Returns void