Jump to navigation Jump to search
A_OverlayRenderstyle (int layer, int style)
Sets the renderstyle of the overlay specified. Requires A_OverlayFlags' PSPF_RENDERSTYLE set to true to have any effect.
- layer - The layer to modify.
- style - Can be one of the following:
- STYLE_None - Do not render
- STYLE_Normal - Regular rendering (all pixels of the graphic are opaque)
- STYLE_Fuzzy - With a fuzz effect, like the Spectre
- STYLE_SoulTrans - Translucent, to an amount determined by the transsouls CVAR.
- STYLE_OptFuzzy - Fuzzy or translucent, based on the value of the r_drawfuzz CVAR.
- STYLE_Stencil - All pixels are drawn in a single color and fully opaque.
- STYLE_Translucent - Translucent according to the alpha field (from 0.0 to 1.0).
- STYLE_TranslucentStencil - Like stencil, but supports alpha.
- STYLE_Add - Additive rendering: each pixel has its own translucency value based on the brightness of its color (pure white = fully opaque, pure black = fully invisible). Recommended for things that are meant to emit light, like fire, plasma, etc.
- STYLE_Shaded - All pixels are tinted with a specific color.
- STYLE_Shadow - Equivalent to black translucent stencil with an alpha of 0.3
- STYLE_Subtract - The opposite of additive: the darker the pixel, the more opaque it is, and vice versa.
- STYLE_AddStencil - Combines stencil and additive: all pixels are drawn in a single color, and the whole graphic will be translucent based on the brightness of that color.
- STYLE_AddShaded - Combines shaded and additive: all pixels are tinted with a specific color, and the translucency of each pixel is set based on the brightness of its color.
|Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated.|