跳到主要内容
版本:v10.0

M3D / M3D / Render / GLDetectionEffect

Class: GLDetectionEffect

M3D.Render.GLDetectionEffect

Memberof

M3D.Render

Description

插图效果

Hierarchy

  • Effect

    GLDetectionEffect

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new GLDetectionEffect(shaders, context): GLDetectionEffect

Parameters

NameType
shadersGLShaders
contextRenderContext

Returns

GLDetectionEffect

Description

构造函数

Overrides

Effect.constructor

Properties

id

id: number

Inherited from

Effect.id


count

Static count: number

Inherited from

Effect.count


detectionDepthNormalFBO

Static detectionDepthNormalFBO: string = "detectionDepthNormal"


detectionEdgeFBO

Static detectionEdgeFBO: string = "detectionEdge"


detectionEdgeLineFBO

Static detectionEdgeLineFBO: string = "detectionEdgeLine"


detectionFlatColorFBO

Static detectionFlatColorFBO: string = "detectionFlatColor"

Methods

getEffectType

getEffectType(): EffectType

Returns

EffectType

特效类型

Description

获取特效类型

Inherited from

Effect.getEffectType


getEvents

getEvents(): M3DEvent[]

Returns

M3DEvent[]

Description

获得事件列表

Inherited from

Effect.getEvents


getId

getId(): number

Returns

number

Description

获取id

Inherited from

Effect.getId


getRenderContext

getRenderContext(): RenderContext

Returns

RenderContext

渲染上下文

Description

获取渲染上下文

Inherited from

Effect.getRenderContext


registerEvent

registerEvent(event): void

Parameters

NameTypeDescription
eventM3DEventM3D事件

Returns

void

Description

注册事件

Inherited from

Effect.registerEvent


removeEvent

removeEvent(): void

Returns

void

Description

删除事件

Inherited from

Effect.removeEvent


render

render(camera, renderInfo, drawer, buffers, node): boolean

Parameters

NameType
cameraCamera
renderInfoRenderInfo
drawerGL10TreeDrawer
buffersGPUObjects
nodeRenderTreeNode

Returns

boolean

Description

绘制


setEffectType

setEffectType(effectType): void

Parameters

NameTypeDescription
effectTypeEffectType特效类型

Returns

void

Description

设置特效类型

Inherited from

Effect.setEffectType


setId

setId(v): void

Parameters

NameTypeDescription
vnumberShapeId

Returns

void

Description

设置id

Inherited from

Effect.setId


setRenderContext

setRenderContext(v): void

Parameters

NameTypeDescription
vRenderContext渲染上下文

Returns

void

Description

设置GL

Inherited from

Effect.setRenderContext