feat: Enhance Bevel & Emboss effect with contour support and algorithm improvements
- Implemented contour lookup functionality for Bevel & Emboss effect to allow for custom contour curves. - Added contour parameter to LayerStyle and updated related structures and functions. - Improved emboss algorithm by fixing height field calculations and ensuring proper handling of outside pixels. - Introduced tilt component for 3D emboss effect, enhancing visual depth. - Optimized MAE grid search parameters for better performance and accuracy. - Expanded Iced GUI panel for Bevel & Emboss to include contour selection and additional styling options. - Updated example scripts to reflect changes in the API and new features.
This commit is contained in:
@@ -882,6 +882,7 @@ fn kra_effect_to_layer_style(effect: &hcie_protocol::effects::LayerEffect) -> La
|
||||
highlight_color: *highlight_color,
|
||||
shadow_blend_mode: shadow_blend.clone(),
|
||||
shadow_color: *shadow_color,
|
||||
contour: "Linear".to_string(),
|
||||
}
|
||||
}
|
||||
hcie_protocol::effects::LayerEffect::Satin { enabled, color, opacity, angle, distance, size, invert, .. } => {
|
||||
|
||||
Reference in New Issue
Block a user