|
|
Add a new element into QtQuick.Effects called RectangularShadow.
This is a high performance shadow/glow for (rounded)rectangle
shapes.
Differences compared to QGE RectangularGlow:
- Implemented in C++ and part of QtQuick.Effects module.
- Different API, modelled based on CSS box-shadow.
- Shader uses SDFs math for rounded rectangle. Reduced item size
and properly rounding math (circle is a circle).
- Allows offset and spread relative to item.
- Default color is black (shadow) rather than white (glow).
- Using "layer.enabled" for cache property rather than separate
ShaderEffectSource.
- Property "material" so shader effect can be customized. QQEM
can contain RectangularShadow node for easier customization.
Contains an example and lancelot tests.
Task-number: QTBUG-128469
Change-Id: Ie3baa774a3294ba0c7fe11d1bee8cd7aae897505
Reviewed-by: Kaj Grönholm <[email protected]>
|