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:
@@ -317,6 +317,7 @@ pub enum LayerStyle {
|
||||
highlight_color: [u8; 4],
|
||||
shadow_blend_mode: String,
|
||||
shadow_color: [u8; 4],
|
||||
contour: String,
|
||||
},
|
||||
Satin { enabled: bool, opacity: f32, angle: f32, distance: f32, size: f32, color: [u8; 4], invert: bool },
|
||||
ColorOverlay { enabled: bool, opacity: f32, color: [u8; 4], blend_mode: String },
|
||||
|
||||
Reference in New Issue
Block a user