Rebel Fork Framework
|
Light parameters needed to calculate SH lighting. More...
#include <Urho3D/RenderPipeline/LightAccumulator.h>
Public Member Functions | |
LightDataForAccumulator (Light *light) | |
Construct from light. | |
ea::pair< Vector3, float > | GetDirectionToLight (const Vector3 &worldPos) const |
Return normalized direction and inverted normalized distance to light for given point in world. | |
float | GetSpotAttenuation (const Vector3 &worldDir) const |
Return direction-based spot attenuation. | |
SphericalHarmonicsDot9 | GetLightingAtPoint (const Vector3 &worldPos) const |
Return lighting at the point as SH. | |
Public Attributes | |
Color | color_ |
Vector3 | position_ |
Vector3 | direction_ |
LightType | lightType_ {} |
float | range_ {} |
float | spotCutoff_ {} |
float | inverseSpotCutoff_ {} |
Light parameters needed to calculate SH lighting.