Blend (Material stage keyword)

From modwiki

Jump to: navigation, search

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.


Predefined Blendmodes
Parameter Description Reacts to Light Example Result
add Additive Stage. Lightens underlying surfaces. Often used for glowing decals. Explicit blend function. No
Enlarge
Enlarge
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
Enlarge
Enlarge
bumpmap Bump Stage. Defines bump texture for use with per-pixel lighting. Yes
Enlarge
Enlarge
diffusemap Diffuse Stage. Defines diffuse texture for use with per-pixel lighting. Yes
Enlarge
Enlarge
filter Filter Stage. Darkens underlying surfaces. Often used for blood decals. Explicit blend function. No
Enlarge
Enlarge
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
Enlarge
Enlarge
Personal tools
Main