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_strength to control how strongly the map multiplies glow color.

Parameters

TypeNameDescription
stringpathPath of the glow map to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Apply a lens dirt glow map
gfx.glow.set_map("textures/lens_dirt.png")
Apply a glow map with custom strength
gfx.glow.set_map("textures/lens_dirt.png")
gfx.glow.set_map_strength(0.5)

On this page