C# 클래스 OpenBveApi.Objects.DistanceGlow

Represents a glow where the intensity is inversely proportional to the distance between the object and the camera.
상속: OrientationalGlow
파일 보기 프로젝트 열기: leezer3/OpenBVE

공개 메소드들

메소드 설명
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