Blend (Material stage keyword)
From modwiki
Description
This keyword defines what blend mode should be used with this stage.
Usage
blend [mode]
Parameters
- [mode] - A predefined blend mode or an explicit blend function. A table of predefined blendmodes is at the bottom of this page.
Example
None.
Notes
Only the three standard light interaction blend modes, bumpmap, diffusemap, and specularmap, react to lights.
Explicit blend functions do not recieve lighting and appear fullbright.
| Parameter | Description | Reacts to Light | Example | Result |
|---|---|---|---|---|
| add | Additive Stage. Lightens underlying surfaces. Often used for glowing decals. Explicit blend function. | No | ||
| blend | Blend Stage. Blends with underlying surfaces. Often used for alpha transparent decals. The texture's alpha channel determines the blending. Explicit blend function. | No | ||
| bumpmap | Bump Stage. Defines bump texture for use with per-pixel lighting. | Yes | ||
| diffusemap | Diffuse Stage. Defines diffuse texture for use with per-pixel lighting. | Yes | ||
| filter | Filter Stage. Darkens underlying surfaces. Often used for blood decals. Explicit blend function. | No | ||
| modulate | Modulation Stage. Explicit blend function. | No | Same As Filter | Same As Filter |
| none | Non-blending Stage. Explicit blend function. | No | NA | NA |
| specularmap | Specular Stage. Defines specular texture for use with per-pixel lighting. | Yes |

