Light
Class
constructor
name
generate_
shader
update_
uniforms
GJS API Reference
Mash-0.2
Mash
LightClass
Class LightClass
Hierarchy
LightClass
Index
Constructors
constructor
Properties
name
Methods
generate_
shader
update_
uniforms
Constructors
constructor
new
Light
Class
(
)
:
LightClass
Returns
LightClass
Properties
Static
name
name
:
string
Methods
generate_
shader
generate_
shader
(
light
:
Light
, uniform_source
:
GLib
.
String
, main_source
:
GLib
.
String
)
:
void
Parameters
light:
Light
uniform_source:
GLib
.
String
main_source:
GLib
.
String
Returns
void
update_
uniforms
update_
uniforms
(
light
:
Light
, program
:
object
)
:
void
Parameters
light:
Light
program:
object
Returns
void
Light
Class
constructor
name
generate_
shader
update_
uniforms
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJNYXNoXzBfMi5NYXNoLkxpZ2h0Q2xhc3MuaHRtbCNjb25zdHJ1Y3RvciIsIm5hbWUiOiJjb25zdHJ1Y3RvciIsImNoaWxkcmVuIjpbXSwiaXNFeHRlcm4iOmZhbHNlLCJpc0ludGVybiI6dHJ1ZX0seyJjbGFzc05hbWVzIjoidHNkLWtpbmQtcHJvcGVydHkgdHNkLXBhcmVudC1raW5kLWNsYXNzIHRzZC1pcy1zdGF0aWMiLCJocmVmIjoiTWFzaF8wXzIuTWFzaC5MaWdodENsYXNzLmh0bWwjbmFtZSIsIm5hbWUiOiJuYW1lIiwiY2hpbGRyZW4iOltdLCJpc0V4dGVybiI6ZmFsc2UsImlzSW50ZXJuIjp0cnVlfSx7ImNsYXNzTmFtZXMiOiJ0c2Qta2luZC1tZXRob2QgdHNkLXBhcmVudC1raW5kLWNsYXNzIiwiaHJlZiI6Ik1hc2hfMF8yLk1hc2guTGlnaHRDbGFzcy5odG1sI2dlbmVyYXRlX3NoYWRlciIsIm5hbWUiOiJnZW5lcmF0ZV9zaGFkZXIiLCJjaGls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