Marble

Classic marble swirl and vein texture using noise-warped sine waves

Props

  • colorA

    Base background color of the marble

    Type
    string
    Default
    #ffffff
  • colorB

    Secondary marble tone

    Type
    string
    Default
    #3a2d54
  • colorC

    Deepest marble color

    Type
    string
    Default
    #0f0f0f
  • scale

    Scale and density of the marble vein pattern

    Type
    number
    Default
    2
  • turbulence

    Amount of noise-driven distortion applied to the veins

    Type
    number
    Default
    10
  • speed

    Animation speed

    Type
    number
    Default
    0.05
  • seed

    Random seed for pattern variation

    Type
    number
    Default
    0
  • colorSpace

    Color space for color interpolation

    Type
    "linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"
    Default
    linear

Usage

<Shader>
  <Marble />
</Shader>