601 B
601 B
Materials: Commands
alphagen
Syntax
alphaGen
Overview
The alpha channel can be specified like the rgb channels. If not specified, it defaults to 1.0.
Functions
portal
This rendering stage keyword is used in conjunction with the 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.