nuclide/Documentation/Materials/commands/alphagen.md

22 lines
607 B
Markdown
Raw Normal View History

2022-10-02 17:10:54 -07:00
# Materials: Commands {#mat_commands}
## alphagen
### Syntax
2022-10-02 17:10:54 -07:00
**alphaGen <func>**
### Overview
2022-10-02 17:10:54 -07:00
The alpha channel can be specified like the [rgb channels](rgbgen.md). If not specified, it
2022-10-02 17:10:54 -07:00
defaults to 1.0.
### Functions {#functions}
#### portal {#portal}
This rendering stage keyword is used in conjunction with the
[surfaceparm](surfaceparm.md) keyword
2022-10-02 17:10:54 -07:00
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.