project-aster/samples/03_model_render/ibl_helpers.h

28 lines
682 B
C++

// =============================================
// Aster: ibl_helpers.h
// Copyright (c) 2020-2025 Anish Bhobe
// =============================================
#pragma once
#include "aster/aster.h"
#include "aster/import_types.h"
namespace aster
{
struct Pipeline;
struct Texture;
struct TextureCube;
} // namespace aster
struct AssetLoader;
struct Environment
{
aster::ResId<aster::TextureView> m_Skybox;
aster::ResId<aster::TextureView> m_Diffuse;
aster::ResId<aster::TextureView> m_Prefilter;
aster::ResId<aster::TextureView> m_BrdfLut;
};
Environment CreateCubeFromHdrEnv(AssetLoader &assetLoader, u32 cubeSide, aster::ResId<aster::TextureView> hdrEnv);