Toast Engine
Loading...
Searching...
No Matches
assets::PaletteEntry Struct Reference

16 bytes and the offsets are a shader contract More...

#include <palette.hpp>

Public Member Functions

constexpr auto operator== (const PaletteEntry &) const noexcept -> bool=default

Public Attributes

uint8_t albedo_r = 0
uint8_t albedo_g = 0
uint8_t albedo_b = 0
uint8_t roughness = 0
 0-255 for 0-1
uint8_t metallic = 0
uint8_t reflectivity = 0
 Separate from metallic since a wet non metal reflects and a dirty metal barely does.
uint8_t emissive = 0
 Scaled by Palette::max_emissive.
uint8_t material = k_default_material
uint8_t flags = 0
uint8_t transforms_to = 0
 0 burns away and only read for flammable materials
uint8_t alpha = 255
std::array< uint8_t, 5 > reserved {}

Detailed Description

16 bytes and the offsets are a shader contract


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