Archive incari-client (client, 26.3, clean)

This commit is contained in:
2026-11-28 00:54:38 -06:00
parent 7a6174687f
commit 12838e838c
2383 changed files with 280266 additions and 0 deletions
@@ -0,0 +1,39 @@
// This frame's layers for Horizon to draw after the sunrise, before the sun, moon and stars.
fn incari_customsky_sky_layers(
game: &crate::game::Game<'_>,
day_time: i64,
rain: f32,
thunder: f32,
sun_angle: f32,
layers: &mut Vec<crate::game::native_hooks::NativeSkyLayer>,
) {
use crate::game::incari_customsky::{self as m, Blend};
use crate::game::native_hooks::{NativeSkyBlend as B, NativeSkyLayer};
let _ = game;
m::each_layer(
day_time,
rain,
thunder,
sun_angle,
|texture, blend, alpha, angle, axis| {
let blend = match blend {
Blend::Alpha => B::Alpha,
Blend::Add => B::Add,
Blend::Subtract => B::Subtract,
Blend::Multiply => B::Multiply,
Blend::Dodge => B::Dodge,
Blend::Burn => B::Burn,
Blend::Screen => B::Screen,
Blend::Overlay => B::Overlay,
Blend::Replace => B::Replace,
};
layers.push(NativeSkyLayer {
texture,
blend,
alpha,
angle,
axis,
});
},
);
}