Rise
The Vieneo Province
Loading...
Searching...
No Matches
LandingLights Namespace Reference

Classes

struct  Condition
struct  ImpactCondition
struct  Light
struct  Profile
struct  Sweep

Functions

template<class Vector>
Vector OrthonormalUp (Vector up, const Vector &direction)
float Smooth (float low, float high, float value)
float Angular (const Profile &profile, float horizontalSlope, float verticalSlope, float axialDistanceKm)
float IlluminanceLux (const Profile &profile, float distanceKm)
const char * BodySide (float x)
unsigned InstallationMismatch (unsigned modelCount, const char *health)
int ImpactHealth (int health, float clearanceKm, float closingMps, float damageScale=1, int damageLimit=127)
unsigned NearestLamp (const RiseMath::Vector3 &origin, const std::array< Light, MaxLights > &lights, unsigned count)
bool Valid (const RiseMath::Vector3 &origin, const RiseMath::Vector3 &direction)
template<class Effects>
unsigned FromModel (const Effects &effects, std::array< Light, MaxLights > &lights)
Light Transform (const Light &source, const RiseMath::Matrix &modelToWorld)
std::array< RiseMath::Vector4, MaxLights > EmissionSources (const std::array< Light, MaxLights > &lights, unsigned count, const std::array< float, MaxLights > &brightness, const RiseMath::Matrix &modelToWorld)
template<class Vertex>
void FogMesh (const Light &light, Vertex *output, bool spill)
float Intensity (const Light &light, const RiseMath::Vector3 &delta)
Profile VehicleProfile (unsigned char type)
Light Configure (Light light, unsigned char type, const RiseMath::Matrix &modelBase)

Variables

constexpr Profile RoadLow {30, 6, 80, 60, 16000, .25f, .02f, -.01f}
constexpr Profile CarHigh {12, 12, 30, 30, 100000, .65f, .02f}
constexpr Profile TruckDriving {10, 10, 30, 30, 156250, .8f, .02f}
constexpr Profile AircraftLanding {}
constexpr Profile AircraftTaxi {40, 12, 50, 15, 35000, .45f, .02f}
constexpr Profile Train {8, 8, 40, 40, 225000, .95f, .002f}
constexpr Profile Helmet {20, 20, 40, 40, 4000, .18f, .02f}
constexpr float HousingKm = .00015f
constexpr unsigned MaxLights = 2
constexpr unsigned DeviceSlots [MaxLights] = {1, 3}
constexpr unsigned FogSegments = 24
constexpr unsigned FogRings = 8
constexpr unsigned FogVertexCount = FogSegments * FogRings * 6

Function Documentation

◆ Angular()

float LandingLights::Angular ( const Profile & profile,
float horizontalSlope,
float verticalSlope,
float axialDistanceKm )
inline

Definition at line 66 of file BeamProfile.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BodySide()

const char * LandingLights::BodySide ( float x)
inline

Definition at line 13 of file LandingLights.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Configure()

Light LandingLights::Configure ( Light light,
unsigned char type,
const RiseMath::Matrix & modelBase )
inline

Definition at line 21 of file VehicleLightProfiles.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EmissionSources()

std::array< RiseMath::Vector4, MaxLights > LandingLights::EmissionSources ( const std::array< Light, MaxLights > & lights,
unsigned count,
const std::array< float, MaxLights > & brightness,
const RiseMath::Matrix & modelToWorld )
inline

Definition at line 204 of file LandingLights.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FogMesh()

template<class Vertex>
void LandingLights::FogMesh ( const Light & light,
Vertex * output,
bool spill )

Definition at line 222 of file LandingLights.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FromModel()

template<class Effects>
unsigned LandingLights::FromModel ( const Effects & effects,
std::array< Light, MaxLights > & lights )

Definition at line 161 of file LandingLights.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IlluminanceLux()

float LandingLights::IlluminanceLux ( const Profile & profile,
float distanceKm )
inline

Definition at line 81 of file BeamProfile.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ImpactHealth()

int LandingLights::ImpactHealth ( int health,
float clearanceKm,
float closingMps,
float damageScale = 1,
int damageLimit = 127 )
inline

Definition at line 81 of file LandingLights.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ InstallationMismatch()

unsigned LandingLights::InstallationMismatch ( unsigned modelCount,
const char * health )
inline

Definition at line 70 of file LandingLights.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Intensity()

float LandingLights::Intensity ( const Light & light,
const RiseMath::Vector3 & delta )
inline

Definition at line 266 of file LandingLights.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ NearestLamp()

unsigned LandingLights::NearestLamp ( const RiseMath::Vector3 & origin,
const std::array< Light, MaxLights > & lights,
unsigned count )
inline

Definition at line 139 of file LandingLights.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OrthonormalUp()

template<class Vector>
Vector LandingLights::OrthonormalUp ( Vector up,
const Vector & direction )

Definition at line 43 of file BeamProfile.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Smooth()

float LandingLights::Smooth ( float low,
float high,
float value )
inline

Definition at line 60 of file BeamProfile.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Transform()

Light LandingLights::Transform ( const Light & source,
const RiseMath::Matrix & modelToWorld )
inline

Definition at line 194 of file LandingLights.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Valid()

bool LandingLights::Valid ( const RiseMath::Vector3 & origin,
const RiseMath::Vector3 & direction )
inline

Definition at line 152 of file LandingLights.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ VehicleProfile()

Profile LandingLights::VehicleProfile ( unsigned char type)
inline

Definition at line 7 of file VehicleLightProfiles.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ AircraftLanding

Profile LandingLights::AircraftLanding {}
inlineconstexpr

Definition at line 38 of file BeamProfile.h.

◆ AircraftTaxi

Profile LandingLights::AircraftTaxi {40, 12, 50, 15, 35000, .45f, .02f}
inlineconstexpr

Definition at line 39 of file BeamProfile.h.

◆ CarHigh

Profile LandingLights::CarHigh {12, 12, 30, 30, 100000, .65f, .02f}
inlineconstexpr

Definition at line 36 of file BeamProfile.h.

◆ DeviceSlots

unsigned LandingLights::DeviceSlots[MaxLights] = {1, 3}
inlineconstexpr

Definition at line 12 of file LandingLights.h.

◆ FogRings

unsigned LandingLights::FogRings = 8

Definition at line 219 of file LandingLights.h.

◆ FogSegments

unsigned LandingLights::FogSegments = 24
inlineconstexpr

Definition at line 219 of file LandingLights.h.

◆ FogVertexCount

unsigned LandingLights::FogVertexCount = FogSegments * FogRings * 6
inlineconstexpr

Definition at line 220 of file LandingLights.h.

◆ Helmet

Profile LandingLights::Helmet {20, 20, 40, 40, 4000, .18f, .02f}
inlineconstexpr

Definition at line 41 of file BeamProfile.h.

◆ HousingKm

float LandingLights::HousingKm = .00015f
inlineconstexpr

Definition at line 9 of file LampContact.h.

◆ MaxLights

unsigned LandingLights::MaxLights = 2
inlineconstexpr

Definition at line 10 of file LandingLights.h.

◆ RoadLow

Profile LandingLights::RoadLow {30, 6, 80, 60, 16000, .25f, .02f, -.01f}
inlineconstexpr

Definition at line 35 of file BeamProfile.h.

◆ Train

Profile LandingLights::Train {8, 8, 40, 40, 225000, .95f, .002f}
inlineconstexpr

Definition at line 40 of file BeamProfile.h.

◆ TruckDriving

Profile LandingLights::TruckDriving {10, 10, 30, 30, 156250, .8f, .02f}
inlineconstexpr

Definition at line 37 of file BeamProfile.h.