czm_material

czm_material

Holds material information that can be used for lighting. Returned by all czm_getMaterial functions.

Properties:
Name Type Description
diffuse vec3 Incoming light that scatters evenly in all directions.
specular float Intensity of incoming light reflecting in a single direction.
shininess float The sharpness of the specular reflection. Higher values create a smaller, more focused specular highlight.
normal vec3 Surface's normal in eye coordinates. It is used for effects such as normal mapping. The default is the surface's unmodified normal.
emission vec3 Light emitted by the material equally in all directions. The default is vec3(0.0), which emits no light.
alpha float Opacity of this material. 0.0 is completely transparent; 1.0 is completely opaque.
Source: