VectSharp 2.6.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.
| |||||||||||
Colour | GetColour (Point3D point, NormalizedVector3D surfaceNormal, Camera camera, IList< ILightSource > lights, IList< double > obstructions) | ||||||||||
Obtains the Colour at the specified point. More... | |||||||||||
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.
Colour VectSharp.ThreeD.PhongMaterial.GetColour | ( | Point3D | point, |
NormalizedVector3D | surfaceNormal, | ||
Camera | camera, | ||
IList< ILightSource > | lights, | ||
IList< double > | obstructions | ||
) |
Obtains the Colour at the specified point.
point | The point whose colour should be determined. |
surfaceNormal | The normal to the surface at the specified point . |
camera | The camera being used to render the scene. |
lights | A list of light sources that are present in the scene. |
obstructions | A list of values indicating how obstructed each light source is. |
Implements VectSharp.ThreeD.IMaterial.
Definition at line 142 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.