Files
FlaxEngine/Source/Engine/Renderer/AtmospherePreCompute.h
2024-02-26 19:00:48 +01:00

33 lines
719 B
C++

// Copyright (c) 2012-2024 Wojciech Figat. All rights reserved.
#pragma once
#include "FlaxEngine.Gen.h"
class GPUTexture;
/// <summary>
/// Structure that contains precomputed data for atmosphere rendering.
/// </summary>
struct AtmosphereCache
{
GPUTexture* Transmittance;
GPUTexture* Irradiance;
GPUTexture* Inscatter;
};
/// <summary>
/// PBR atmosphere cache data rendering service.
/// </summary>
class FLAXENGINE_API AtmospherePreCompute
{
public:
/// <summary>
/// Gets the atmosphere cache textures.
/// </summary>
/// <param name="cache">Result cache</param>
/// <returns>True if context is ready for usage.</returns>
static bool GetCache(AtmosphereCache* cache);
};