ChartDirector 7.0 (PHP Edition)

phpchartdir.phongLighting


Usage

phongLighting([ ambientIntensity, diffuseIntensity, specularIntensity, shininess ])

Description

Sets the parameters for the phong lighting effect.

The return value of this method can be used as the second argument to Layer.setBorderColor to configure phong lighting effect for the layer.

Arguments

ArgumentDefaultDescription
ambientIntensity0.5The ambient reflection coefficient of the Phong lighting model.
diffuseIntensity0.5The diffuse reflection coefficient of the Phong lighting model.
specularIntensity0.75The specular reflection coefficient of the Phong lighting model.
shininess8The shininess coefficient of the Phong lighting model.

Return Value

An integer representing the phong lighting effect.