M3D / M3D / Render / GLDetectionEffect
Class: GLDetectionEffect
Memberof
M3D.Render
Description
插图效果
Hierarchy
-
↳
GLDetectionEffect
Table of contents
Constructors
Properties
Methods
- getEffectType
- getEvents
- getId
- getRenderContext
- registerEvent
- removeEvent
- render
- setEffectType
- setId
- setRenderContext
Constructors
constructor
• new GLDetectionEffect(shaders
, context
): GLDetectionEffect
Parameters
Name | Type |
---|---|
shaders | GLShaders |
context | RenderContext |
Returns
Description
构造函数
Overrides
Properties
id
• id: number
Inherited from
count
▪ Static
count: number
Inherited from
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
特效类型
Description
获取特效类型
Inherited from
getEvents
▸ getEvents(): M3DEvent
[]
Returns
M3DEvent
[]
Description
获得事件列表
Inherited from
getId
▸ getId(): number
Returns
number
Description
获取id
Inherited from
getRenderContext
▸ getRenderContext(): RenderContext
Returns
渲染上下文
Description
获取渲染上下文
Inherited from
registerEvent
▸ registerEvent(event
): void
Parameters
Name | Type | Description |
---|---|---|
event | M3DEvent | M3D事件 |
Returns
void
Description
注册事件
Inherited from
removeEvent
▸ removeEvent(): void
Returns
void
Description
删除事件
Inherited from
render
▸ render(camera
, renderInfo
, drawer
, buffers
, node
): boolean
Parameters
Name | Type |
---|---|
camera | Camera |
renderInfo | RenderInfo |
drawer | GL10TreeDrawer |
buffers | GPUObjects |
node | RenderTreeNode |
Returns
boolean
Description
绘制
setEffectType
▸ setEffectType(effectType
): void
Parameters
Name | Type | Description |
---|---|---|
effectType | EffectType | 特效类型 |
Returns
void
Description
设置特效类型
Inherited from
setId
▸ setId(v
): void
Parameters
Name | Type | Description |
---|---|---|
v | number | ShapeId |
Returns
void
Description
设置id
Inherited from
setRenderContext
▸ setRenderContext(v
): void
Parameters
Name | Type | Description |
---|---|---|
v | RenderContext | 渲染上下文 |
Returns
void
Description
设置GL