esp::gfx::PbrEquiRectangularToCubeMapShader class

a shader to convert a HDRi image (the environment map in equirectangular form) to a cubemap

Public types

enum (anonymous): Magnum::UnsignedInt { ColorOutput = Magnum::Shaders::GenericGL3D::ColorOutput }

Constructors, destructors, conversion operators

PbrEquiRectangularToCubeMapShader() explicit
Constructor.
PbrEquiRectangularToCubeMapShader(const PbrEquiRectangularToCubeMapShader&) deleted
Copying is not allowed.
PbrEquiRectangularToCubeMapShader(PbrEquiRectangularToCubeMapShader&&) defaulted noexcept
Move constructor.

Public functions

auto operator=(const PbrEquiRectangularToCubeMapShader&) -> PbrEquiRectangularToCubeMapShader& deleted
Copying is not allowed.
auto operator=(PbrEquiRectangularToCubeMapShader&&) -> PbrEquiRectangularToCubeMapShader& defaulted noexcept
Move assignment.
void loadTexture(const std::string& filename)
auto setCubeSideIndex(unsigned int index) -> PbrEquiRectangularToCubeMapShader&
set the index of the cube side.
auto bindEquirectangularTexture(Magnum::GL::Texture2D& texture) -> PbrEquiRectangularToCubeMapShader&
Bind equirectangular texture.

Enum documentation

enum esp::gfx::PbrEquiRectangularToCubeMapShader::(anonymous): Magnum::UnsignedInt

Enumerators
ColorOutput

Color shader output. Generic output, present always. Expects three- or four-component floating-point or normalized buffer attachment.

Function documentation

PbrEquiRectangularToCubeMapShader& esp::gfx::PbrEquiRectangularToCubeMapShader::setCubeSideIndex(unsigned int index)

set the index of the cube side.

Parameters
index in be 0, 1, 2, 3, 4 or 5
Returns Reference to self (for method chaining)

PbrEquiRectangularToCubeMapShader& esp::gfx::PbrEquiRectangularToCubeMapShader::bindEquirectangularTexture(Magnum::GL::Texture2D& texture)

Bind equirectangular texture.

Returns Reference to self (for method chaining)