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

Represents a material that always has the same colour, regardless of light. More...

Inheritance diagram for VectSharp.ThreeD.ColourMaterial:

Public Member Functions

 ColourMaterial (Colour colour)
 Creates a new ColourMaterial instance. More...
 
Colour 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.
More...
 
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 colour of the material. More...
 

Detailed Description

Represents a material that always has the same colour, regardless of light.

Definition at line 48 of file Materials.cs.

Constructor & Destructor Documentation

◆ ColourMaterial()

VectSharp.ThreeD.ColourMaterial.ColourMaterial ( Colour  colour)

Creates a new ColourMaterial instance.

Parameters
colourThe colour of the material.

Definition at line 59 of file Materials.cs.

Member Function Documentation

◆ GetColour()

Colour VectSharp.ThreeD.ColourMaterial.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.

Implements VectSharp.ThreeD.IMaterial.

Definition at line 65 of file Materials.cs.

Property Documentation

◆ Colour

Colour VectSharp.ThreeD.ColourMaterial.Colour
get

The colour of the material.

Definition at line 53 of file Materials.cs.


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