Macro material_select

Source
macro_rules! material_select {
    ( $Select:ident { $( $Enum:ident ( $Param:ident = $Material:ty ) ),+ $(,)? } ) => { ... };
}
Expand description

The macro for making a union of materials.

You can read more about the technique here.