C# Class OpenBveApi.Objects.DistanceGlow

Represents a glow where the intensity is inversely proportional to the distance between the object and the camera.
Inheritance: OrientationalGlow
Exibir arquivo Open project: leezer3/OpenBVE

Public Methods

Method Description
DistanceGlow ( double halfDistance ) : System

Creates a new distance glow.

GetIntensity ( Vector3 cameraPosition, Orientation3 cameraOrientation, Vector3 objectPosition, Vector3 objectOrientation ) : double

Gets the intensity of the glow.

Method Details

DistanceGlow() public method

Creates a new distance glow.
public DistanceGlow ( double halfDistance ) : System
halfDistance double The distance at which the intensity is exactly 50%.
return System

GetIntensity() public method

Gets the intensity of the glow.
public GetIntensity ( Vector3 cameraPosition, Orientation3 cameraOrientation, Vector3 objectPosition, Vector3 objectOrientation ) : double
cameraPosition Vector3 The position of the camera.
cameraOrientation OpenBveApi.Math.Orientation3 The orientation of the camera.
objectPosition Vector3 The position of the object.
objectOrientation Vector3 The orientation of the object.
return double