|
NSUNI/NSLAR Library a250670
|
Classes | |
| struct | nnl::render::RenderConfig |
| Represents settings for rendering. More... | |
Functions | |
| bool | nnl::render::IsOfType (BufferView buffer) |
| Tests if the provided file is a render config. | |
| RenderConfig | nnl::render::Import (BufferView buffer) |
| Parses a binary file and converts it to a RenderConfig struct. | |
| Buffer | nnl::render::Export (const RenderConfig &render_config) |
| Converts a render config to a binary file representation. | |
| struct nnl::render::RenderConfig |
Represents settings for rendering.
Public Attributes | |
| u8 | bloom_translucency = 0x7F |
| f32 | mipmap_bias = 0.1f |
| f32 | mipmap_slope = 0.002f |
| f32 | fog_near = 500.0f |
| f32 | fog_draw_distance_far = 1200.0f |
| u32 | fog_color = 0xFF'00'00'00 |
| u8 | distance_transition_translucency = 0 |
| u8 nnl::render::RenderConfig::bloom_translucency = 0x7F |
Controls the visibility of the bloom effect. 0 means the effect is the strongest.
| u8 nnl::render::RenderConfig::distance_transition_translucency = 0 |
Controls whether objects located at the edge of the rendering distance disappear immediately or gradually become transparent. A value of 0 (fully opaque) or 255 means the effect won't be noticeable. Set it to 0 for the maximum rendering distance.
| u32 nnl::render::RenderConfig::fog_color = 0xFF'00'00'00 |
Color of the fog in the ABGR format (alpha is ignored)
| f32 nnl::render::RenderConfig::fog_draw_distance_far = 1200.0f |
Sets the rendering distance and the distance where the fog fully covers objects. A value of 100.0 is added to it by the game engine.
| f32 nnl::render::RenderConfig::fog_near = 500.0f |
Sets the distance where the fog starts to cover spawned entities (characters, crates). It has no effect on map objects. The value may be negative.
| f32 nnl::render::RenderConfig::mipmap_bias = 0.1f |
An offset value that is added to the LoD calculation of a texture (aka OFFL)
| f32 nnl::render::RenderConfig::mipmap_slope = 0.002f |
Another value that is used to calculate LoD (aka TSLOPE, see the official GE docs for more details)
|
nodiscard |
Converts a render config to a binary file representation.
This function takes a RenderConfig object and converts it into a Buffer, which represents the binary format of the render config.
| render_config | The RenderConfig object to be converted. |
| RenderConfig nnl::render::Import | ( | BufferView | buffer | ) |
Parses a binary file and converts it to a RenderConfig struct.
This function takes a binary representation of a render config, parses its contents, and converts them into a RenderConfig struct for easier access and manipulation.
| buffer | The binary data to be processed. |
| bool nnl::render::IsOfType | ( | BufferView | buffer | ) |
Tests if the provided file is a render config.
This function takes data representing a file and checks whether it corresponds to the in-game render config format.
| buffer | The data to be tested. |