ChartDirector 5.1 (.NET Edition)

Chart.phongLighting


Usage

[VB] Public Shared Function phongLighting([ ambientIntensity As Double, diffuseIntensity As Double, specularIntensity As Double, shininess As Integer ]) As Integer
[C#] public static int phongLighting([ double ambientIntensity, double diffuseIntensity, double specularIntensity, int 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.