esp::gfx::EquirectangularShader class

Base classes

class CubeMapShaderBase

Constructors, destructors, conversion operators

EquirectangularShader(Flags flags = {Flag::ColorTexture}) explicit
constructor
~EquirectangularShader() defaulted override

Public functions

auto setViewportSize(const Mn::Vector2i& viewportSize) -> EquirectangularShader&
Set ViewportSize for calculations in vertex shader.

Protected variables

int viewportHeightUniform_
int viewportWidthUniform_

Function documentation

esp::gfx::EquirectangularShader::EquirectangularShader(Flags flags = {Flag::ColorTexture}) explicit

constructor

Parameters
flags in equirectangular shader flags

EquirectangularShader& esp::gfx::EquirectangularShader::setViewportSize(const Mn::Vector2i& viewportSize)

Set ViewportSize for calculations in vertex shader.

Parameters
viewportSize in the size of the viewport
Returns itself for method chaining