feat: render semantic glass backdrops

This commit is contained in:
Samuel Onoja committed 2026-09-25 05:30:21 +01:00
1 parent b3c5821e3b
commit 389581e763
4 files changed
+421 -41

No files matched your search

-2
View File
@@ -31,7 +31,6 @@ pub(crate) enum SemanticRole {
}
#[derive(Clone, Copy, Debug, PartialEq)]
#[allow(dead_code)] // Used by the material renderer in the next M7 slice.
pub(crate) struct ResolvedMaterial {
pub style: MaterialStyle,
pub opacity: f32,
@@ -41,7 +40,6 @@ pub(crate) struct ResolvedMaterial {
pub noise: f32,
}
#[allow(dead_code)] // Used by the material renderer in the next M7 slice.
pub(crate) fn resolve_material(role: SemanticRole, style: MaterialStyle) -> ResolvedMaterial {
let (opacity, blur, saturation, brightness, noise) = match role {
SemanticRole::Panel => (0.78, 24.0, 1.08, 1.02, 0.012),