*SetColorMaterialSimple()
Sets the properties for a simple color material.
Syntax
*SetColorMaterialSimple(color_name,red,green,blue,alpha)
Arguments
- color_name
- The variable name of the material color.
- red
- A value between 0 and 1.
- green
- A value between 0 and 1.
- blue
- A value between 0 and 1.
- alpha
- The value of the transparency of the material. A value between 0 and 1.
- 0
- Most transparent.
- 1
- Opaque.
Example
*ColorMaterial(mat_aluminum_alloy, "Aluminum alloy")
*SetColorMaterialComplex(mat_aluminum_alloy, 1, 32.7007, 0, 0, 0, 1, 1, 1, 0.13923, 0.13923, 0.13923, 0.69615, 0.69615, 0.69615)
*ColorMaterial(mat_color1, "Color 1")
*SetColorMaterialSimple(mat_color1, 0.4, 0.7, 0.8, 1.0)
*SetColorMaterialReference(gra_0, mat_color1)
Context
Comments
A color material can be set using either the simple or complex method.