gfx.glow.set_map
Client
Sets the glow map applied to the glow post-processing effect
Syntax
local status = gfx.glow.set_map(
path
)Glow maps are textures whose RGB channels multiply the resulting glow color, commonly used to create a "lens dirt" effect. The alpha channel is ignored.
- Stretching — the texture is stretched to fit the screen; use an image whose aspect ratio matches your project's base resolution.
- Map strength — use
gfx.glow.set_map_strengthto control how strongly the map multiplies glow color.
Parameters
| Type | Name | Description |
|---|---|---|
string | path | Path of the glow map to apply |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
gfx.glow.set_map("textures/lens_dirt.png")gfx.glow.set_map("textures/lens_dirt.png")
gfx.glow.set_map_strength(0.5)