Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Engine > UTexture
- UTexture::GetAverageBrightness()
- UTexture2D::GetAverageBrightness()
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Engine/Texture.h |
Include | #include "Engine/Texture.h" |
Source | /Engine/Source/Runtime/Engine/Private/Texture.cpp |
virtual float GetAverageBrightness
&40;
bool bIgnoreTrueBlack,
bool bUseGrayscale
&41;
Remarks
Gets the average brightness of the texture (in linear space) float The average brightness of the texture
Parameters
Name | Description |
---|---|
bIgnoreTrueBlack | If true, then pixels w/ 0,0,0 rgb values do not contribute. |
bUseGrayscale | If true, use gray scale else use the max color component. |