// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
#pragma once
#include "Engine/Graphics/Textures/TextureBase.h"
///
/// Contains IES profile texture used by the lights to simulate real life bulb light emission.
///
API_CLASS(NoSpawn) class FLAXENGINE_API IESProfile : public TextureBase
{
DECLARE_BINARY_ASSET_HEADER(IESProfile, TexturesSerializedVersion);
public:
struct CustomDataLayout
{
float Brightness;
float TextureMultiplier;
};
public:
///
/// The light brightness in Lumens, imported from IES profile.
///
API_FIELD() float Brightness;
///
/// The multiplier to map texture value to result to integrate over the sphere to 1.
///
API_FIELD() float TextureMultiplier;
protected:
// [BinaryAsset]
bool init(AssetInitData& initData) override;
};