ChartDirector 7.1 (C++ Edition)

Chart.phongLighting


Usage

static int phongLighting(double ambientIntensity = 0.5, double diffuseIntensity = 0.5, double specularIntensity = 0.75, int shininess = 8);

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.