This is the documentation for Enlighten.
namespace Enlighten Helpers
Enlighten::Helpers
Classes
Name | Description |
|---|---|
Hashes data. |
Functions
Name | Description |
|---|---|
Constructs a transposed light view projection matrix for the given light parameters. | |
ExtractDusterVisibility(const Geo::u8 *, const Geo::u32, const Geo::u32) | Extracts 4 consecutive bits into an XYZW mask from the given visibility data based on the given quad index. |
ExtractIndexedXyValues(const Geo::v128 *, const Geo::v128 &, Geo::v128 &, Geo::v128 &) | Extracts the indexed X and Y values from a vector table, based on the input indices. |
ExtractSampleVisibility(const Geo::u8 *, const Geo::u32, const Geo::u32) | Extracts 4 consecutive bits into an XYZW mask from the given visibility data given an arbitrary sample index. |
Determine dot product of four 3-component vectors packed into x, y and z against another 4 vectors packed into normalsX, normalsY and normalsZ. | |
QuadDotProduct(const Geo::v128 &, const Geo::v128 &, const Geo::v128 &, const Geo::v128 &) | Determine dot product of four 3-component vectors packed into x, y and z against another vector. |
QuadLengthSquared(const Geo::v128 &, const Geo::v128 &, const Geo::v128 &) | Determine length squared of four 3-component vectors packed into x, y and z. |
Determine the mask to be used based on the visibility pointer. |
Geo::Matrix Enlighten::Helpers::ConstructLightViewProjTransposed
public: Geo::Matrix ConstructLightViewProjTransposed
(
const Geo::v128 & rightVec,
const Geo::v128 & upVec,
const Geo::v128 & dirVec,
const Geo::v128 & position,
float coneAngle,
float secondConeAngle,
float nearDist,
float far,
float cutoff,
Geo::v128 & sinOut,
Geo::v128 & cosOut,
Geo::v128 & tanOut
)
Constructs a transposed light view projection matrix for the given light parameters.
Parameters
[in] | rightVec | - The 'right' vector of light basis in world space |
[in] | upVec | - The 'up' vector of light basis in world space |
[in] | dirVec | -The 'forward' vector of light basis in world space |
[in] | position | - The world space position of the light |
[in] | coneAngle | - The cone angle of the light |
[in] | secondConeAngle | - The second cone angle of the light |
[in] | nearDist | - The light near plane distance |
[in] | far | - The light far plane distance |
[in] | cutoff | - The radius outside which the intensity of the light is clamped to zero |
[out] | sinOut | - The computed sin of the light cone angle |
[out] | cosOut | - The computed cosine of the light cone angle |
[out] | tanOut | - The computed tangent of the light cone angle |