dlangui v0.9.188 (2022-10-08T18:27:24Z)
Home
Dub
Repo
LightParams
dlangui
graphics
scene
light
Undocumented in source.
static if
(
ENABLE_OPENGL
)
static if
(
BACKEND_GUI
)
struct
LightParams {
Lights
_lights
;
bool
empty
[@property getter];
void
reset
();
void
reset
(LightParams params);
void
add
(Lights lights);
bool
add
(Light light);
vec3
[]
u_directionalLightDirection
;
vec3
[]
u_directionalLightColor
;
vec3
[]
u_pointLightPosition
;
vec3
[]
u_pointLightColor
;
float
[]
u_pointLightRangeInverse
;
vec3
[]
u_spotLightPosition
;
vec3
[]
u_spotLightDirection
;
vec3
[]
u_spotLightColor
;
float
[]
u_spotLightRangeInverse
;
float
[]
u_spotLightInnerAngleCos
;
float
[]
u_spotLightOuterAngleCos
;
}
Members
Functions
add
void
add
(Lights lights)
Undocumented in source. Be warned that the author may not have intended to support it.
add
bool
add
(Light light)
returns true if light is added (not a duplicate, and enabled)
reset
void
reset
()
Undocumented in source. Be warned that the author may not have intended to support it.
reset
void
reset
(LightParams params)
Undocumented in source. Be warned that the author may not have intended to support it.
Properties
empty
bool
empty
[@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
_lights
Lights
_lights
;
Undocumented in source.
u_directionalLightColor
vec3
[]
u_directionalLightColor
;
Undocumented in source.
u_directionalLightDirection
vec3
[]
u_directionalLightDirection
;
Undocumented in source.
u_pointLightColor
vec3
[]
u_pointLightColor
;
Undocumented in source.
u_pointLightPosition
vec3
[]
u_pointLightPosition
;
Undocumented in source.
u_pointLightRangeInverse
float
[]
u_pointLightRangeInverse
;
Undocumented in source.
u_spotLightColor
vec3
[]
u_spotLightColor
;
Undocumented in source.
u_spotLightDirection
vec3
[]
u_spotLightDirection
;
Undocumented in source.
u_spotLightInnerAngleCos
float
[]
u_spotLightInnerAngleCos
;
Undocumented in source.
u_spotLightOuterAngleCos
float
[]
u_spotLightOuterAngleCos
;
Undocumented in source.
u_spotLightPosition
vec3
[]
u_spotLightPosition
;
Undocumented in source.
u_spotLightRangeInverse
float
[]
u_spotLightRangeInverse
;
Undocumented in source.
Meta
Source
See Implementation
dlangui
graphics
scene
light
aliases
LightCounts
LightRef
classes
DirectionalLight
Light
PointLight
SpotLight
enums
LightType
structs
LightParams
Lights