홀로그래픽 포일

Holographic

움직이는 무지갯빛 광택과 반짝이는 조각이 있는 홀로그래픽 포일 표면을 만듭니다.

다른 이름: HolographicHolographic foilIridescent foil

WebGPU 를 지원하는 브라우저에서 움직입니다

이 기기에서는 데모를 그리지 못해 정지 화면을 보여 줍니다

React
// WebGPU 를 지원하는 브라우저에서만 그립니다.
import { Shader, Holographic } from 'shaders/react'

export default function ShaderEffect() {
  return (
    <Shader style={{ width: '100%', height: 320 }} disableTelemetry>
      <Holographic />
    </Shader>
  )
}
Vue
<!-- WebGPU 를 지원하는 브라우저에서만 그립니다. -->
<script setup lang="ts">
import { Shader, Holographic } from 'shaders/vue'
</script>

<template>
  <Shader style="width: 100%; height: 320px" :disable-telemetry="true">
    <Holographic/>
  </Shader>
</template>
Svelte
<!-- WebGPU 를 지원하는 브라우저에서만 그립니다. -->
<script>
  import { Shader, Holographic } from 'shaders/svelte'
</script>

<Shader style="width: 100%; height: 320px" disableTelemetry>
  <Holographic />
</Shader>
Solid
// WebGPU 를 지원하는 브라우저에서만 그립니다.
import { Shader, Holographic } from 'shaders/solid'

export default function ShaderEffect() {
  return (
    <Shader style={{ width: '100%', height: '320px' }} disableTelemetry>
      <Holographic />
    </Shader>
  )
}
JavaScript
// WebGPU 를 지원하는 브라우저에서만 그립니다.
// <canvas id="canvas" style="width:100%;height:320px"></canvas> 가 페이지에 있어야 한다
import { createShader } from 'shaders/js'

const shader = await createShader(document.getElementById("canvas"), {
  components: [
    {
      type: 'Holographic',
    }
  ]
}, { disableTelemetry: true })

속성(props) · Holographic

값을 바꾸면 위 데모와 코드 탭에 바로 반영됩니다. 설명은 라이브러리 레지스트리의 영어 원문(MIT)입니다.

이름값기본값범위·선택지설명(원문)
originOrigin코드에서 지정center—Reference edge the center position is measured from (center default). Lets you pin the shape relative to a corner or the canvas centre.
centerCenter
x0.5y0.5
{"x":0.5,"y":0.5}x, y: 0 – 1Center position of the foil shape
scaleScale10.1 – 3 (step 0.01)Scale of the foil shape (1 = default size)
rotationRotation00 – 360 (step 1)Rotation of the foil shape in degrees
hueShiftHue Shift00 – 360 (step 1)Rotates the rainbow spectrum across the foil
foilScaleFoil Scale1.50.3 – 6 (step 0.01)Size of the iridescent color patches — higher = smaller, busier patches
saturationSaturation0.750 – 1 (step 0.01)Rainbow saturation — 0 = plain silver foil, 1 = fully spectral
roughnessRoughness0.250 – 1 (step 0.01)Matte laminate grain — softens the gloss with fine paper-like noise
speedSpeed10 – 2 (step 0.01)Animation speed — the spectrum drifts across the foil as if the sticker is tilting in your hand. 0 pauses.
crinkleCrinkle0.50 – 1 (step 0.01)Laminate wrinkles — perturbs the surface so the sheen and rainbow swirl locally instead of lying flat
crinkleScaleCrinkle Scale10.3 – 6 (step 0.01)Size of the laminate wrinkles — higher = smaller, denser wrinkles
sparkleSparkle0.40 – 1 (step 0.01)Glitter flakes embedded in the foil — tiny facets that refract a shifted hue and twinkle as the spectrum drifts
edgeSoftnessEdge Softness0.050 – 1 (step 0.01)Softness of the shape boundary edge
shapeShape코드에서 지정{"type":"sphere3D","radius":0.35}—Serialized shape configuration (JSON)
shapeSdfUrlshapeSdfUrl코드에서 지정—URL to a pre-generated SDF .bin file
shapeTypeshapeType코드에서 지정—Active SDF shape type

모든 컴포넌트 공통: blendMode · opacity · visible · maskSource/maskType · boundingBox · id

빛을 움직일 때 색이 바뀌는 홀로그램 스티커처럼, 표면에 무지갯빛 얼룩과 작은 반짝임이 떠다닙니다.

`hueShift`는 무지개 색의 위치를 돌리고, `foilScale`을 높이면 색 얼룩이 더 작고 촘촘해집니다. `saturation`을 낮추면 은빛에 가까워지고, `crinkle`은 주름진 포일 느낌을 더합니다. `sparkle`은 반짝이는 조각의 양을 조절합니다.

자체 포일 표면을 만들므로 배지나 스티커 그래픽에 쓰기 좋습니다. 움직이는 반짝임과 색 대비가 작은 글자를 가릴 수 있으니 문장 전체에 적용하지 마세요.

언제 쓰나

스티커, 한정판 배지, 포장 그래픽의 반짝이는 포인트에 잘 맞습니다. 오래 읽어야 하는 문구나 차분한 UI의 넓은 영역에는 피하세요.

페이지로 열기 ↗