Blend (Material stage keyword)
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 react to lighting. They are composited with the background in a similar manner to the way blend modes work in PhotoShop.
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 |
Missing image: /w/images/thumb/e/ea/Filter_Example.jpg/100px-Filter_Example.jpg
|
|
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 |
|
|