Toggle Sidebar B
Light & dark mode D

Emboss

Embossed / debossed relief shading on top of child content, driven by a custom shape

Embossed / debossed relief shading on top of child content, driven by a custom shape

Props

PropTypeDefaultDescription
centerposition{"x":0.5,"y":0.5}Center position of the embossed shape
scalerange1Scale of the embossed shape (1 = default size)
depthrange-0.5Relief depth - negative = inset (debossed), positive = raised (embossed)
lightAnglerange260Directional light angle in degrees - controls highlight and shadow direction
lightIntensityrange0.6Strength of the directional edge highlights and shadows
shadowIntensityrange0.3Darkness of the relief shadow
shapeshape{"type":"circleSDF","radius":0.35}Serialized shape configuration (JSON)
shapeSdfUrlshape-uploadURL to a pre-generated SDF .bin file - when non-empty, activates SVG mode and triggers a shader recompile
shapeType-Active SDF shape type - triggers recompile when shape is switched. When empty, derived from shape JSON at mount time.

Usage

vue
<Shader>
  <Emboss>
    <Circle />
  </Emboss>
</Shader>