Class: abstract
WebGLLayerProgram<N, E, G>
Defined in: layer-webgl/src/webgl-layer-program/index.ts:24
This program is based on the base Program from Sigma, but instead of using this.array
to iterate over the vertices,
it is bound to some uniform directly for the fragment shader.
So, when extending this new CustomLayerProgram abstract class:
- Do not implement
getDefinition
, implementgetCustomLayerDefinition
instead - Do not implement
setUniforms
, implementsetCameraUniforms
andcacheDataUniforms
instead
Extends
Program
<string
,N
,E
,G
>
Type Parameters
• N extends Attributes
= Attributes
• E extends Attributes
= Attributes
• G extends Attributes
= Attributes
Constructors
new WebGLLayerProgram()
new WebGLLayerProgram<
N
,E
,G
>(gl
,pickingBuffer
,renderer
):WebGLLayerProgram
<N
,E
,G
>
Defined in: layer-webgl/src/webgl-layer-program/index.ts:34
Parameters
gl
WebGLRenderingContext
| WebGL2RenderingContext
pickingBuffer
null
| WebGLFramebuffer
renderer
Sigma
<N
, E
, G
>
Returns
WebGLLayerProgram
<N
, E
, G
>
Overrides
Properties
array
array:
Float32Array
Defined in: sigma/src/rendering/program.ts:69
Inherited from
ATTRIBUTES
ATTRIBUTES:
ProgramAttributeSpecification
[]
Defined in: sigma/src/rendering/program.ts:60
Inherited from
ATTRIBUTES_ITEMS_COUNT
ATTRIBUTES_ITEMS_COUNT:
number
Defined in: sigma/src/rendering/program.ts:65
Inherited from
Program
.ATTRIBUTES_ITEMS_COUNT
capacity
capacity:
number
=0
Defined in: sigma/src/rendering/program.ts:71
Inherited from
CONSTANT_ATTRIBUTES
CONSTANT_ATTRIBUTES:
ProgramAttributeSpecification
[]
Defined in: sigma/src/rendering/program.ts:62
Inherited from
CONSTANT_DATA
CONSTANT_DATA:
number
[][]
Defined in: sigma/src/rendering/program.ts:63
Inherited from
constantArray
constantArray:
Float32Array
Defined in: sigma/src/rendering/program.ts:70
Inherited from
FRAGMENT_SHADER_SOURCE
FRAGMENT_SHADER_SOURCE:
string
Defined in: sigma/src/rendering/program.ts:58
Inherited from
Program
.FRAGMENT_SHADER_SOURCE
isInstanced
isInstanced:
boolean
Defined in: sigma/src/rendering/program.ts:77
Inherited from
METHOD
METHOD:
number
Defined in: sigma/src/rendering/program.ts:61
Inherited from
normalProgram
normalProgram:
ProgramInfo
Defined in: sigma/src/rendering/program.ts:74
Inherited from
pickProgram
pickProgram:
null
|ProgramInfo
Defined in: sigma/src/rendering/program.ts:75
Inherited from
renderer
renderer:
Sigma
<N
,E
,G
>
Defined in: sigma/src/rendering/program.ts:68
Inherited from
STRIDE
STRIDE:
number
Defined in: sigma/src/rendering/program.ts:66
Inherited from
UNIFORMS
UNIFORMS: readonly
string
[]
Defined in: sigma/src/rendering/program.ts:59
Inherited from
VERTEX_SHADER_SOURCE
VERTEX_SHADER_SOURCE:
string
Defined in: sigma/src/rendering/program.ts:57
Inherited from
VERTICES
VERTICES:
number
Defined in: sigma/src/rendering/program.ts:56
Inherited from
verticesCount
verticesCount:
number
=0
Defined in: sigma/src/rendering/program.ts:72
Inherited from
Methods
bindAttribute()
protected
bindAttribute(attr
,program
,offset
,setDivisor
?):number
Defined in: sigma/src/rendering/program.ts:244
Parameters
attr
program
offset
number
setDivisor?
boolean
Returns
number
Inherited from
bindProgram()
protected
bindProgram(program
):void
Defined in: layer-webgl/src/webgl-layer-program/index.ts:62
Parameters
program
Returns
void
Overrides
cacheDataUniforms()
abstract
cacheDataUniforms(programInfo
):void
Defined in: layer-webgl/src/webgl-layer-program/index.ts:30
Parameters
programInfo
Returns
void
drawWebGL()
drawWebGL(
method
,__namedParameters
):void
Defined in: sigma/src/rendering/program.ts:355
Parameters
method
number
__namedParameters
Returns
void
Inherited from
getCustomLayerDefinition()
abstract
getCustomLayerDefinition():WebGLLayerDefinition
Defined in: layer-webgl/src/webgl-layer-program/index.ts:32
Returns
getDefinition()
getDefinition():
ProgramDefinition
Defined in: layer-webgl/src/webgl-layer-program/index.ts:44
Returns
Overrides
getProgramInfo()
protected
getProgramInfo(name
,gl
,vertexShaderSource
,fragmentShaderSource
,frameBuffer
):ProgramInfo
Defined in: sigma/src/rendering/program.ts:150
Parameters
name
"normal"
| "pick"
gl
WebGLRenderingContext
| WebGL2RenderingContext
vertexShaderSource
string
fragmentShaderSource
string
frameBuffer
null
| WebGLFramebuffer
Returns
Inherited from
hasNothingToRender()
hasNothingToRender():
boolean
Defined in: layer-webgl/src/webgl-layer-program/index.ts:56
Returns
boolean
Overrides
kill()
kill():
void
Defined in: sigma/src/rendering/program.ts:141
Returns
void
Inherited from
reallocate()
reallocate(
capacity
):void
Defined in: sigma/src/rendering/program.ts:297
Parameters
capacity
number
Returns
void
Inherited from
render()
render(
params
):void
Defined in: sigma/src/rendering/program.ts:334
Parameters
params
RenderParams
Returns
void
Inherited from
renderProgram()
protected
renderProgram(params
,programInfo
):void
Defined in: sigma/src/rendering/program.ts:318
Parameters
params
RenderParams
programInfo
Returns
void
Inherited from
setCameraUniforms()
abstract
setCameraUniforms(params
,programInfo
):void
Defined in: layer-webgl/src/webgl-layer-program/index.ts:31
Parameters
params
RenderParams
programInfo
Returns
void
setUniforms()
setUniforms(
params
,programInfo
):void
Defined in: layer-webgl/src/webgl-layer-program/index.ts:59
Parameters
params
RenderParams
programInfo
Returns
void
Overrides
unbindAttribute()
protected
unbindAttribute(attr
,program
,unsetDivisor
?):void
Defined in: sigma/src/rendering/program.ts:279
Parameters
attr
program
unsetDivisor?
boolean
Returns
void
Inherited from
unbindProgram()
protected
unbindProgram(program
):void
Defined in: sigma/src/rendering/program.ts:235
Parameters
program
Returns
void