Search
Preparing search index...
The search index is not available
SDF-2D - v0.7.6
Options
All
Public
Public/Protected
All
Inherited
Menu
Globals
CircleLight
Class CircleLight
Hierarchy
LightDrawable
CircleLight
Index
Constructors
constructor
Properties
center
color
intensity
lightness
Ratio
Methods
get
Object
ToSerialize
min
Distance
set
Lightness
Ratio
Object literals
descriptor
Constructors
constructor
new
Circle
Light
(
center
:
vec2
, color
:
vec3
, intensity
:
number
)
:
CircleLight
Parameters
center:
vec2
color:
vec3
intensity:
number
Returns
CircleLight
Properties
center
center
:
vec2
color
color
:
vec3
intensity
intensity
:
number
Protected
lightness
Ratio
lightness
Ratio
:
number
= 1
Methods
Protected
get
Object
ToSerialize
get
Object
ToSerialize
(
transform2d
:
mat2d
, transform1d
:
number
)
:
any
Parameters
transform2d:
mat2d
transform1d:
number
Returns
any
min
Distance
min
Distance
(
target
:
vec2
)
:
number
Parameters
target:
vec2
Returns
number
set
Lightness
Ratio
set
Lightness
Ratio
(
ratio
:
number
)
:
void
Parameters
ratio:
number
Returns
void
Object literals
Static
Readonly
descriptor
descriptor
:
object
empty
empty
:
CircleLight
= new CircleLight(vec2.create(), vec3.create(), 0)
shader
Combination
Steps
shader
Combination
Steps
:
number
[]
= [0, 1, 2, 4, 8, 16]
uniform
Count
Macro
Name
uniform
Count
Macro
Name
:
string
= "CIRCLE_LIGHT_COUNT"
property
Uniform
Mapping
property
Uniform
Mapping
:
object
center
center
:
string
= "circleLightCenters"
color
color
:
string
= "circleLightColors"
intensity
intensity
:
string
= "circleLightIntensities"
Globals
Circle
Light
constructor
center
color
intensity
lightness
Ratio
get
Object
ToSerialize
min
Distance
set
Lightness
Ratio
descriptor