*SetColorMaterialComplex()
Sets the properties for a complex color material.
Syntax
*SetColorMaterialComplex(color_name,alpha,shininess,
emission_red, emission_green, emission_blue,
specular_red, specular_green, specular_blue,
ambient_red, ambient_green, ambient_blue,
diffuse_red, diffuse_green, diffuse_blue)
Arguments
- color_name
- The variable name of the material color.
- alpha
- Specifies the transparency of a material.
- shininess
- Specifies the degree of shininess of the specular light component of a material.
- emission_red
- Specifies the red value for the emitted light component of a material.
- emission_green
- Specifies the green value for the emitted light component of a material.
- emission_blue
- Specifies the blue value for the emitted light component of a material.
- specular_red
- Specifies the red value for the specular light component of a material.
- specular_green
- Specifies the green value for the specular light component of a material.
- specular_blue
- Specifies the blue value for the specular light component of a material.
- ambient_red
- Specifies the red value for the ambient light component of a material.
- ambient_green
- Specifies the green value for the ambient light component of a material.
- ambient_blue
- Specifies the blue value for the ambient light component of a material.
- diffuse_red
- Specifies the red value for the diffuse light component of a material.
- diffuse_green
- Specifies the green value for the diffuse light component of a material.
- diffuse_blue
- Specifies the blue value for the diffuse light component of a material.
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.