GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::graphics::Sky3DOptions Struct Reference

Configuration options for a Sky3D. More...

#include <GREM/graphics_3d/Sky3D.hpp>

Public Member Functions

constexpr bool operator== (const Sky3DOptions &other) const noexcept=default
 Compare these options to another set of options for equality.

Public Attributes

Color color = Color::WHITE
 Tint color of the skybox.
Color ambientColor = Color::WHITE
 Ambient light tint color produced by the skybox.
Color reflectionColor = Color::WHITE
 Reflection tint color produced by the skybox.
uint32_t radianceMapResolution = 0
 Desired width, in texels, of the generated radiance cubemap, or 0 to choose an appropriate resolution automatically based on the size of the source image or texture.
uint32_t irradianceMapResolution = 16
 Desired width, in texels, of the generated irradiance cubemap, or 0 to disable diffuse irradiance from the sky.
uint32_t reflectionMapResolution = 256
 Desired width, in texels, of the generated reflection cubemap, or 0 to disable specular reflections from the sky.

Detailed Description

Configuration options for a Sky3D.

Member Function Documentation

◆ operator==()

bool grem::graphics::Sky3DOptions::operator== ( const Sky3DOptions & other) const
nodiscardconstexprdefaultnoexcept

Compare these options to another set of options for equality.

Parameters
otherthe options to compare these to.
Returns
true if the options are equal, false otherwise.

Member Data Documentation

◆ color

Color grem::graphics::Sky3DOptions::color = Color::WHITE

Tint color of the skybox.

◆ ambientColor

Color grem::graphics::Sky3DOptions::ambientColor = Color::WHITE

Ambient light tint color produced by the skybox.

◆ reflectionColor

Color grem::graphics::Sky3DOptions::reflectionColor = Color::WHITE

Reflection tint color produced by the skybox.

◆ radianceMapResolution

uint32_t grem::graphics::Sky3DOptions::radianceMapResolution = 0

Desired width, in texels, of the generated radiance cubemap, or 0 to choose an appropriate resolution automatically based on the size of the source image or texture.

Must be 0 or a power of 2.

◆ irradianceMapResolution

uint32_t grem::graphics::Sky3DOptions::irradianceMapResolution = 16

Desired width, in texels, of the generated irradiance cubemap, or 0 to disable diffuse irradiance from the sky.

Must be 0 or a power of 2.

◆ reflectionMapResolution

uint32_t grem::graphics::Sky3DOptions::reflectionMapResolution = 256

Desired width, in texels, of the generated reflection cubemap, or 0 to disable specular reflections from the sky.

Must be 0 or a power of 2.


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