Blur

가우시안 블러

A uniform Gaussian blur softens edges and fine detail across the image.

Also known as: BlurGaussian blur

Moves in browsers that support WebGPU

This device could not render the demo — showing a still

React
// Renders only in browsers with WebGPU.
// /samples/… are this site’s sample files — point them at your own image or video.
import { Shader, Blur, ImageTexture } from 'shaders/react'

export default function ShaderEffect() {
  return (
    <Shader style={{ width: '100%', height: 320 }} disableTelemetry>
      <ImageTexture
        objectFit="cover"
        url="/samples/still.jpg" />
      <Blur
        intensity={24} />
    </Shader>
  )
}
Vue
<!-- Renders only in browsers with WebGPU. -->
<!-- /samples/… are this site’s sample files — point them at your own image or video. -->
<script setup lang="ts">
import { Shader, Blur, ImageTexture } from 'shaders/vue'
</script>

<template>
  <Shader style="width: 100%; height: 320px" :disable-telemetry="true">
    <ImageTexture
      object-fit="cover"
      url="/samples/still.jpg"/>
    <Blur
      :intensity="24"/>
  </Shader>
</template>
Svelte
<!-- Renders only in browsers with WebGPU. -->
<!-- /samples/… are this site’s sample files — point them at your own image or video. -->
<script>
  import { Shader, Blur, ImageTexture } from 'shaders/svelte'
</script>

<Shader style="width: 100%; height: 320px" disableTelemetry>
  <ImageTexture
    objectFit="cover"
    url="/samples/still.jpg" />
  <Blur
    intensity={24} />
</Shader>
Solid
// Renders only in browsers with WebGPU.
// /samples/… are this site’s sample files — point them at your own image or video.
import { Shader, Blur, ImageTexture } from 'shaders/solid'

export default function ShaderEffect() {
  return (
    <Shader style={{ width: '100%', height: '320px' }} disableTelemetry>
      <ImageTexture
        objectFit="cover"
        url="/samples/still.jpg" />
      <Blur
        intensity={24} />
    </Shader>
  )
}
JavaScript
// Renders only in browsers with WebGPU.
// /samples/… are this site’s sample files — point them at your own image or video.
// expects <canvas id="canvas" style="width:100%;height:320px"></canvas> on the page
import { createShader } from 'shaders/js'

const shader = await createShader(document.getElementById("canvas"), {
  components: [
    {
      type: 'ImageTexture',
      props: {
        objectFit: 'cover',
        url: '/samples/still.jpg',
      },
    },
    {
      type: 'Blur',
      props: {
        intensity: 24,
      },
    }
  ]
}, { disableTelemetry: true })

Props · Blur

Changes apply to the demo above and to the code tabs. Descriptions come from the library registry (MIT).

NameValueDefaultRange / optionsDescription
intensityIntensity500 – 200 (step 1)Intensity of the blur effect

Every component also takes blendMode · opacity · visible · maskSource/maskType · boundingBox · id

It blends small edges together like a photograph that is slightly out of focus. This is the familiar blur used to soften a background and make a foreground element stand out.

`intensity` defaults to 50 and ranges from 0 to 200. Raising it spreads and strengthens the blur; lowering it preserves more of the original outline.

Place it over an input layer such as a photo, video, or text. Apply it only to a background or pair it with a light color overlay when text must stay readable, and check that small lettering does not disappear.

When to use

Use it to soften a photo background, reduce visual noise behind text, or separate foreground from background. Avoid a strong blur when crisp product detail matters.

Open as page ↗