|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Distance-based fog in 3D space. More...
#include <GREM/graphics_3d/Fog3D.hpp>
Classes | |
| struct | Parameters |
| Struct of shader parameters representing the fog's appearance. More... | |
Public Types | |
| using | ParameterBuffer = UniformBuffer<Parameters, "Fog3DParameters"> |
| Shader buffer for fog parameters. | |
Public Member Functions | |
| Fog3D (Device &device, const Fog3DOptions &options={}) | |
| Construct a fog. | |
| void | setFog (const Fog3DOptions &newFogOptions) |
| Set the fog parameters. | |
| Fog3DOptions | getOptions () const noexcept |
| Get the configuration options of the fog. | |
Distance-based fog in 3D space.
| using grem::graphics::Fog3D::ParameterBuffer = UniformBuffer<Parameters, "Fog3DParameters"> |
Shader buffer for fog parameters.
|
explicit |
Construct a fog.
| device | device to create the fog for. Must outlive the fog. |
| options | fog options, see Fog3DOptions. |
| void grem::graphics::Fog3D::setFog | ( | const Fog3DOptions & | newFogOptions | ) |
Set the fog parameters.
| newFogOptions | fog options, see Fog3DOptions. |
| graphics::Error | if resource creation failed. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
|
inlinenodiscardnoexcept |
Get the configuration options of the fog.