VectSharp 2.6.1
A light library for C# vector graphics
|
Represents a material used to the determine the appearance of Triangle3DElement. More...
Public Member Functions | |
Colour | GetColour (Point3D point, NormalizedVector3D surfaceNormal, Camera camera, IList< ILightSource > lights, IList< double > obstructions) |
Obtains the Colour at the specified point. More... | |
Represents a material used to the determine the appearance of Triangle3DElement.
Definition at line 31 of file Materials.cs.
Colour VectSharp.ThreeD.IMaterial.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. |
Implemented in VectSharp.ThreeD.ColourMaterial, and VectSharp.ThreeD.PhongMaterial.