VectSharp 2.5.0
A light library for C# vector graphics
Loading...
Searching...
No Matches
VectSharp.ThreeD.IMaterial Interface Reference

Represents a material used to the determine the appearance of Triangle3DElement. More...

Inheritance diagram for VectSharp.ThreeD.IMaterial:

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...
 

Detailed Description

Represents a material used to the determine the appearance of Triangle3DElement.

Definition at line 31 of file Materials.cs.

Member Function Documentation

◆ GetColour()

Colour VectSharp.ThreeD.IMaterial.GetColour ( Point3D  point,
NormalizedVector3D  surfaceNormal,
Camera  camera,
IList< ILightSource lights,
IList< double >  obstructions 
)

Obtains the Colour at the specified point.

Parameters
pointThe point whose colour should be determined.
surfaceNormalThe normal to the surface at the specified point .
cameraThe camera being used to render the scene.
lightsA list of light sources that are present in the scene.
obstructionsA list of values indicating how obstructed each light source is.
Returns
The Colour of the specified point.

Implemented in VectSharp.ThreeD.ColourMaterial, and VectSharp.ThreeD.PhongMaterial.


The documentation for this interface was generated from the following file: