Search
Preparing search index...
The search index is not available
SDF-2D - v0.3.1
Options
All
Public
Public/Protected
All
Inherited
Menu
Globals
LightsRenderPass
Class LightsRenderPass
Hierarchy
RenderPass
LightsRenderPass
Index
Constructors
constructor
Properties
frame
light
Cutoff
Distance
program
Methods
add
Drawable
destroy
initialize
render
Constructors
constructor
new
Lights
Render
Pass
(
gl
:
UniversalRenderingContext
, frame
:
FrameBuffer
)
:
LightsRenderPass
Parameters
gl:
UniversalRenderingContext
frame:
FrameBuffer
Returns
LightsRenderPass
Properties
Protected
frame
frame
:
FrameBuffer
light
Cutoff
Distance
light
Cutoff
Distance
:
number
= 400
Protected
program
program
:
UniformArrayAutoScalingProgram
Methods
add
Drawable
add
Drawable
(
drawable
:
LightDrawable
)
:
void
Parameters
drawable:
LightDrawable
Returns
void
destroy
destroy
(
)
:
void
Returns
void
initialize
initialize
(
shaderSources
:
[
string
,
string
]
, descriptors
:
Array
<
DrawableDescriptor
>
, substitutions
?:
{}
, compiler
:
ParallelCompiler
)
:
Promise
<
void
>
Parameters
shaderSources:
[
string
,
string
]
descriptors:
Array
<
DrawableDescriptor
>
Default value
substitutions:
{}
= {}
[
name:
string
]:
any
compiler:
ParallelCompiler
Returns
Promise
<
void
>
render
render
(
commonUniforms
:
any
,
...
inputTextures
:
Array
<
WebGLTexture
>
)
:
void
Parameters
commonUniforms:
any
Rest
...
inputTextures:
Array
<
WebGLTexture
>
Returns
void
Globals
Lights
Render
Pass
constructor
frame
light
Cutoff
Distance
program
add
Drawable
destroy
initialize
render