VectSharp
2.2.1
A light library for C# vector graphics
|
Represents a material that uses a Phong reflection model to determine the colour of the material based on the light sources that hit it. More...
Public Member Functions | |
PhongMaterial (Colour colour) | |
Creates a new PhongMaterial instance. More... | |
Colour | GetColour (Point3D point, NormalizedVector3D surfaceNormal, Camera camera, IList< ILightSource > lights, IList< double > obstructions) |
Obtains the Colour at the specified point. | |
Properties | |
Colour | Colour [get] |
The base colour of the material. More... | |
double | AmbientReflectionCoefficient = 1 [get, set] |
A coefficient determining how much ambient light is reflected by the material. More... | |
double | DiffuseReflectionCoefficient = 1 [get, set] |
A coefficient determining how much directional light is reflected by the material. More... | |
double | SpecularReflectionCoefficient = 1 [get, set] |
A coefficient determining the intensity of specular highlights. More... | |
double | SpecularShininess = 1 [get, set] |
A coefficient determining the extent of specular highlights. More... | |
Represents a material that uses a Phong reflection model to determine the colour of the material based on the light sources that hit it.
Definition at line 74 of file Materials.cs.
VectSharp.ThreeD.PhongMaterial.PhongMaterial | ( | Colour | colour | ) |
Creates a new PhongMaterial instance.
colour | The base colour of the material. |
Definition at line 111 of file Materials.cs.
|
getset |
A coefficient determining how much ambient light is reflected by the material.
Definition at line 90 of file Materials.cs.
|
get |
The base colour of the material.
Definition at line 79 of file Materials.cs.
|
getset |
A coefficient determining how much directional light is reflected by the material.
Definition at line 95 of file Materials.cs.
|
getset |
A coefficient determining the intensity of specular highlights.
Definition at line 100 of file Materials.cs.
|
getset |
A coefficient determining the extent of specular highlights.
Definition at line 105 of file Materials.cs.