C# Класс OpenBveApi.Objects.DistanceGlow

Represents a glow where the intensity is inversely proportional to the distance between the object and the camera.
Наследование: OrientationalGlow
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

DistanceGlow() публичный Метод

Creates a new distance glow.
public DistanceGlow ( double halfDistance ) : System
halfDistance double The distance at which the intensity is exactly 50%.
Результат System

GetIntensity() публичный Метод

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.
Результат double