You're breathtaking!

This commit is contained in:
Wojtek Figat
2020-12-07 23:40:54 +01:00
commit 6fb9eee74c
5143 changed files with 1153594 additions and 0 deletions

View File

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