![]() |
ezEngine
Release 25.03
|
Represents an individual element of a lens flare. More...
#include <LensFlareComponent.h>
Public Member Functions | |
ezResult | Serialize (ezStreamWriter &inout_stream) const |
ezResult | Deserialize (ezStreamReader &inout_stream) |
Public Attributes | |
ezTexture2DResourceHandle | m_hTexture |
ezColor | m_Color = ezColor::White |
float | m_fSize = 10000.0f |
World space size. | |
float | m_fMaxScreenSize = 1.0f |
Relative screen space size in 0..1 range. | |
float | m_fAspectRatio = 1.0f |
Width:height ratio, only height is adjusted while width stays fixed. | |
float | m_fShiftToCenter = 0.0f |
Move the element along the lens flare origin to screen center line. 0 is at the lens flare origin, 1 at the screen center. Values below 0 or above 1 are also possible. | |
bool | m_bGreyscaleTexture = false |
Whether the given texture is a greyscale or color texture. | |
bool | m_bModulateByLightColor = true |
Modulate the element's color by the light color and intensity if the lens flare component is linked to a light component. | |
bool | m_bInverseTonemap = false |
Apply an inverse tonemapping operation on the final color. This can be useful if the lens flare is not linked to a light or does not use an hdr color since lens flares are rendered before tonemapping and can look washed out in this case. | |
Represents an individual element of a lens flare.