23 lines
No EOL
601 B
Markdown
23 lines
No EOL
601 B
Markdown
# Materials: Commands {#mat_commands}
|
|
## alphagen
|
|
### Syntax
|
|
|
|
**alphaGen <func>**
|
|
|
|
### Overview
|
|
|
|
The alpha channel can be specified like the [rgb
|
|
channels](rgbGen). If not specified, it
|
|
defaults to 1.0.
|
|
|
|
### Functions {#functions}
|
|
|
|
#### portal {#portal}
|
|
|
|
This rendering stage keyword is used in conjunction with the
|
|
[surfaceparm](surfaceparm) keyword
|
|
portal. The function accomplishes the "fade" that causes the scene in
|
|
the portal to fade from view. Specifically, it means "Generate alpha
|
|
values based on the distance from the viewer to the portal."
|
|
|
|
Use `alphaGen portal` on the last rendering pass. |