Interface: EmissiveMapOptions
Defined in: rendering/utilities/create-image-sprite.ts:23
Configures an emissive map for createImageSprite: a texture, sampled
against the sprite's own UVs, that's added on top of the tinted albedo
unaffected by lighting.
Properties
color?
optionalcolor?:Color
Defined in: rendering/utilities/create-image-sprite.ts:35
Tints the emissive map, so a plain greyscale mask can still glow any
color. Multiplied against the emissive map's sampled RGB, before
intensity scales the result. Defaults to Color.white (no tint,
i.e. the mask's own greyscale value is used as-is).
image
image:
HTMLImageElement
Defined in: rendering/utilities/create-image-sprite.ts:27
The emissive map image.
intensity?
optionalintensity?:number
Defined in: rendering/utilities/create-image-sprite.ts:44
Multiplies the sampled (and tinted) emissive color before it's added on
top of the tinted albedo. Values above 1 push a pixel's brightness
into HDR range, for createBloomEcsSystem (on an HDR-format render
target, see RENDER_TARGET_FORMAT) to bloom convincingly even where
the sprite's own albedo isn't pure white. Defaults to 1.