Class: GBufferPlugin
Plugins.GBufferPlugin
Hierarchy
GenericFilterPlugin
<GBufferRenderPass
<WebGLMultipleRenderTargets
|WebGLRenderTarget
>,"gbuffer"
,""
,ViewerApp
>↳
GBufferPlugin
Implements
Properties
PluginType
▪ Static
Readonly
PluginType: "GBuffer"
Defined in
webgi/src/plugins/GBufferPlugin.ts:32
passId
• passId: "gbuffer"
Overrides
Defined in
webgi/src/plugins/GBufferPlugin.ts:25
renderFlagsBuffer
• renderFlagsBuffer: boolean
= true
renderDepthTexture
• renderDepthTexture: boolean
= false
depthTextureType
• depthTextureType: 1012
| 1014
| 1015
= UnsignedIntType
_dirty
• Protected
_dirty: boolean
= false
Inherited from
Defined in
webgi/src/core/AViewerPlugin.ts:23
_viewer
• Protected
Optional
_viewer: ViewerApp
Inherited from
Defined in
webgi/src/core/AViewerPlugin.ts:27
_beforeFilters
• Protected
_beforeFilters: string
[]
Overrides
GenericFilterPlugin._beforeFilters
Defined in
webgi/src/plugins/GBufferPlugin.ts:27
_afterFilters
• Protected
_afterFilters: never
[] = []
Overrides
GenericFilterPlugin._afterFilters
Defined in
webgi/src/plugins/GBufferPlugin.ts:28
_requiredFilters
• Protected
_requiredFilters: string
[]
Overrides
GenericFilterPlugin._requiredFilters
Defined in
webgi/src/plugins/GBufferPlugin.ts:29
_pass
• Protected
Optional
_pass: IFilter
<GBufferRenderPass
<WebGLMultipleRenderTargets
| WebGLRenderTarget
>, "gbuffer"
>
Inherited from
Defined in
webgi/src/plugins/GenericFilterPlugin.ts:9
Accessors
dirty
• get
dirty(): boolean
Returns
boolean
Implementation of
Inherited from
GenericFilterPlugin.dirty
Defined in
webgi/src/core/AViewerPlugin.ts:16
• set
dirty(value
): void
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
Implementation of
Inherited from
GenericFilterPlugin.dirty
Defined in
webgi/src/core/AViewerPlugin.ts:20
viewer
• get
viewer(): undefined
| TViewer
Returns
undefined
| TViewer
Inherited from
GenericFilterPlugin.viewer
Defined in
webgi/src/core/AViewerPlugin.ts:29
material
• get
material(): undefined
| DepthNormalMaterial
Returns
undefined
| DepthNormalMaterial
Defined in
webgi/src/plugins/GBufferPlugin.ts:22
enabled
• get
enabled(): boolean
Returns
boolean
Inherited from
GenericFilterPlugin.enabled
Defined in
webgi/src/plugins/GenericFilterPlugin.ts:24
• set
enabled(value
): void
Parameters
Name | Type |
---|---|
value | boolean |
Returns
void
Inherited from
GenericFilterPlugin.enabled
Defined in
webgi/src/plugins/GenericFilterPlugin.ts:28
pass
• get
pass(): undefined
| IFilter
<T
, TPassId
>
Returns
undefined
| IFilter
<T
, TPassId
>
Inherited from
GenericFilterPlugin.pass
Defined in
webgi/src/plugins/GenericFilterPlugin.ts:69
Methods
exportState
▸ exportState(): any
Returns
any
Inherited from
GenericFilterPlugin.exportState
Defined in
webgi/src/core/AViewerPlugin.ts:68
importState
▸ importState(state
): Promise
<void
>
Parameters
Name | Type |
---|---|
state | any |
Returns
Promise
<void
>
Inherited from
GenericFilterPlugin.importState
Defined in
webgi/src/core/AViewerPlugin.ts:71
storeState
▸ storeState(prefix?
, storage?
, data?
): void
Parameters
Name | Type |
---|---|
prefix? | string |
storage? | Storage |
data? | any |
Returns
void
Implementation of
Inherited from
GenericFilterPlugin.storeState
Defined in
webgi/src/core/AViewerPlugin.ts:78
loadState
▸ loadState(prefix?
, storage?
): Promise
<void
>
Parameters
Name | Type |
---|---|
prefix? | string |
storage? | Storage |
Returns
Promise
<void
>
Implementation of
Inherited from
Defined in
webgi/src/core/AViewerPlugin.ts:88
passCtor
▸ passCtor(v
): GBufferRenderPass
<WebGLMultipleRenderTargets
| WebGLRenderTarget
>
Parameters
Name | Type |
---|---|
v | ViewerApp |
Returns
GBufferRenderPass
<WebGLMultipleRenderTargets
| WebGLRenderTarget
>
Overrides
Defined in
webgi/src/plugins/GBufferPlugin.ts:38
getDepthNormal
▸ getDepthNormal(): undefined
| Texture
Returns
undefined
| Texture
Defined in
webgi/src/plugins/GBufferPlugin.ts:97
getFlagsTexture
▸ getFlagsTexture(): undefined
| Texture
Returns
undefined
| Texture
Defined in
webgi/src/plugins/GBufferPlugin.ts:100
onDispose
▸ onDispose(viewer
): Promise
<void
>
Parameters
Name | Type |
---|---|
viewer | ViewerApp |
Returns
Promise
<void
>
Implementation of
Overrides
Defined in
webgi/src/plugins/GBufferPlugin.ts:104
onRemove
▸ onRemove(viewer
): Promise
<void
>
Parameters
Name | Type |
---|---|
viewer | ViewerApp |
Returns
Promise
<void
>
Implementation of
Overrides
Defined in
webgi/src/plugins/GBufferPlugin.ts:108
getTarget
▸ getTarget(): undefined
| WebGLMultipleRenderTargets
| WebGLRenderTarget
Returns
undefined
| WebGLMultipleRenderTargets
| WebGLRenderTarget
Defined in
webgi/src/plugins/GBufferPlugin.ts:116
getDepthTexture
▸ getDepthTexture(): undefined
| DepthTexture
Returns
undefined
| DepthTexture
Defined in
webgi/src/plugins/GBufferPlugin.ts:120
getUnpackSnippet
▸ getUnpackSnippet(): string
Returns
string
Defined in
webgi/src/plugins/GBufferPlugin.ts:124
updateShaderProperties
▸ updateShaderProperties(material
): GBufferPlugin
Parameters
Name | Type |
---|---|
material | Object |
material.defines | Record <string , undefined | string | number > |
material.uniforms | Object |
Returns
Implementation of
IShaderPropertiesUpdater.updateShaderProperties
Defined in
webgi/src/plugins/GBufferPlugin.ts:128
registerGBufferUpdater
▸ registerGBufferUpdater(updater
): void
Parameters
Name | Type |
---|---|
updater | (object : Object3D <Event , string >, data : Vector4 ) => void |
Returns
void
Defined in
webgi/src/plugins/GBufferPlugin.ts:142
onAdded
▸ onAdded(viewer
): Promise
<void
>
Parameters
Name | Type |
---|---|
viewer | ViewerApp |
Returns
Promise
<void
>
Implementation of
Inherited from
Defined in
webgi/src/plugins/GenericFilterPlugin.ts:36
toJSON
▸ toJSON(meta?
): any
Parameters
Name | Type |
---|---|
meta? | any |
Returns
any
Implementation of
IViewerPlugin.toJSON
Inherited from
Defined in
webgi/src/plugins/GenericFilterPlugin.ts:73
fromJSON
▸ fromJSON(data
, meta?
): null
| GBufferPlugin
Parameters
Name | Type |
---|---|
data | any |
meta? | any |
Returns
null
| GBufferPlugin
Implementation of
IViewerPlugin.fromJSON
Inherited from
Defined in
webgi/src/plugins/GenericFilterPlugin.ts:82
_storeKey
▸ Protected
_storeKey(prefix?
): string
Parameters
Name | Type |
---|---|
prefix? | string |
Returns
string
Inherited from
Defined in
webgi/src/core/AViewerPlugin.ts:64
_update
▸ Protected
_update(v
): boolean
This function is called every frame before composer render, if this pass is being used in the pipeline
Parameters
Name | Type |
---|---|
v | ViewerApp |
Returns
boolean
Overrides
Defined in
webgi/src/plugins/GBufferPlugin.ts:80
Constructors
constructor
• new GBufferPlugin(renderFlagsBuffer?
, renderDepthTexture?
, depthTextureType?
)
Parameters
Name | Type | Default value |
---|---|---|
renderFlagsBuffer | boolean | true |
renderDepthTexture | boolean | false |
depthTextureType | 1012 | 1014 | 1015 | UnsignedIntType |
Overrides
GenericFilterPlugin.constructor