qtdeclarative/examples/quick/multieffect
Kaj Grönholm dfde7334b2 Add RectangularShadow element
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 <kaj.gronholm@qt.io>
2024-11-09 16:41:37 +02:00
..
itemswitcher Examples: Disable QtC junction points for examples using 'shared' directory 2024-09-27 14:00:08 +02:00
neumorphicpanel Add RectangularShadow element 2024-11-09 16:41:37 +02:00
testbed Examples: Disable QtC junction points for examples using 'shared' directory 2024-09-27 14:00:08 +02:00
CMakeLists.txt Add RectangularShadow element 2024-11-09 16:41:37 +02:00
multieffect.pro