Toggle Sidebar B
Light & dark mode D

DropShadow

Adds a soft shadow behind the child content based on its alpha silhouette

Adds a soft shadow behind the child content based on its alpha silhouette

Props

PropTypeDefaultDescription
colorcolor#000000Shadow color
distancerange0.1How far the shadow is offset from the content
anglerange135Direction the shadow is cast (compass degrees: 0=up, 90=right, 135=lower-right, 180=down)
blurrange5Shadow softness (blur radius in pixels)
intensityrange0.5Shadow intensity - how strong/visible the shadow is
cutoutcheckboxfalseHide the original layer and show only the shadow

Usage

vue
<Shader>
  <DropShadow
    color="#000000"
    :intensity="0.5"
  >
    <Circle />
  </DropShadow>
</Shader>