Visual Computing Library  devel
Loading...
Searching...
No Matches
vcl::ViewerDrawerUniforms Class Reference

The ViewerDrawerUniforms class is responsible for managing the shader uniforms related to a viewer drawer. More...

#include <vclib/bgfx/drawers/uniforms/viewer_drawer_uniforms.h>

Static Public Member Functions

static void bind ()
 
static void setExposure (float exposure)
 
static void setSpecularMipsLevels (uint8_t specMips)
 
static void setToneMapping (PBRViewerSettings::ToneMapping tm)
 

Private Types

enum class  ToneMapping
 

Static Private Attributes

static std::array< float, 4 > sData
 
static Uniform sDataUniform
 

Detailed Description

The ViewerDrawerUniforms class is responsible for managing the shader uniforms related to a viewer drawer.

It provides a static interface to set the uniform data based on the current viewer settings and to bind the uniforms to the shader programs.

Member Data Documentation

◆ sData

std::array<float, 4> vcl::ViewerDrawerUniforms::sData
inlinestaticprivate
Initial value:
= {
1.0,
std::bit_cast<float>(ACES_HILL),
0.0,
0.0
}

The documentation for this class was generated from the following file: