commonlibsse_ng\re\b/
BGSDirectionalAmbientLightingColors.rs1use crate::re::Color::Color;
2
3#[repr(C)]
5#[derive(Debug, Clone, Copy, PartialEq, Eq)]
6pub struct MaxMin<T> {
7 pub max: T, pub min: T, }
10const _: () = assert!(size_of::<MaxMin<Color>>() == 0x8);
11
12impl<T> MaxMin<T> {
13 #[inline]
15 pub const fn new(max: T, min: T) -> Self {
16 Self { max, min }
17 }
18}
19
20#[repr(C)]
22#[derive(Debug, Clone, Copy, PartialEq, Eq)]
23pub struct Directional {
24 pub x: MaxMin<Color>, pub y: MaxMin<Color>, pub z: MaxMin<Color>, }
28const _: () = assert!(size_of::<Directional>() == 0x18);
29
30#[repr(C)]
32#[derive(Debug, Clone, Copy, PartialEq)]
33pub struct BGSDirectionalAmbientLightingColors {
34 pub directional: Directional, pub specular: Color, pub fresnel_power: f32, }
38const _: () = assert!(size_of::<BGSDirectionalAmbientLightingColors>() == 0x20);