Brlcad/How to mged/command/mater

The mater command is used to set the material properties for a previously defined region. This includes parameters, such as the material shader, the shader properties, the rgb colour values and any inheritance properties of the materials.

# Set the material properties for region1.r to plastic
mater region1.r plastic

Setting the material shader properties edit

The shader properties that can be configured depends on the type of material shader being utilized. The following example shows how to set the transparency, reflectiveness, and shininess properties for a plastic material.

mater region1.r plastic "plastic tr=0.3 di=1.0 re=0.2" 255 0 0 0

Note that the shader and shader properties are passed as a single parameter enclosed in quotation marks. The quotation marks are necessary for grouping parameters separated by spaces.