|
NSUNI/NSLAR Library a250670
|
Contains structures and functions for working with light source configs. More...
#include <array>#include "NNL/common/fixed_type.hpp"#include "NNL/common/io.hpp"#include "NNL/simple_asset/sasset3d.hpp"#include "NNL/utility/data.hpp"Go to the source code of this file.
Classes | |
| struct | nnl::lit::Light |
| Represents a directional light in the scene. This structure represents a directional light source that affects dynamically lit materials. More... | |
| struct | nnl::lit::Lit |
| Represents a lighting configuration for a scene. More... | |
Namespaces | |
| namespace | nnl |
| namespace | nnl::lit |
| Contains structures and functions for working with light source configs. | |
Functions | |
| std::vector< nnl::SLight > | nnl::lit::Convert (const Lit &lit) |
| Converts a light config to a more generic representation that is more suitable for exporting into other formats. | |
| Lit | nnl::lit::Convert (const std::vector< nnl::SLight > &slights, glm::vec3 ambient=glm::vec3(0), bool enable_specular=true, float character_brightness=1.0f) |
| Converts a vector of lights to a light config. | |
| bool | nnl::lit::IsOfType (BufferView buffer) |
| Tests if the provided file is a light source config. | |
| Lit | nnl::lit::Import (BufferView buffer) |
| Parses a binary file and converts it to a Lit struct. | |
| Buffer | nnl::lit::Export (const Lit &lit) |
| Converts a light config to a binary file representation. | |
Variables | |
| constexpr u32 | nnl::lit::raw::kMagicBytes = utl::data::FourCC("LIT!") |
| Magic bytes. | |
Contains structures and functions for working with light source configs.