크롬 금속

Chrome

도형 표면에 스튜디오 조명이 비치는 거울 같은 크롬과 다듬은 모서리를 만듭니다.

다른 이름: ChromeMirror chromeChrome finish

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

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

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

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

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

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

export default function ShaderEffect() {
  return (
    <Shader style={{ width: '100%', height: '320px' }} disableTelemetry>
      <Chrome />
    </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: 'Chrome',
    }
  ]
}, { disableTelemetry: true })

속성(props) · Chrome

값을 바꾸면 위 데모와 코드 탭에 바로 반영됩니다. 설명은 라이브러리 레지스트리의 영어 원문(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 chrome shape
scaleScale10.1 – 3 (step 0.01)Scale of the chrome shape (1 = default size)
rotationRotation00 – 360 (step 1)Rotation of the chrome shape in degrees
tintTint#ffffff—Metal tint multiplied into the reflection — white for silver chrome, warm ivory for gold, dusky rose for copper
warmColorWarm Light#ffa94d—Color of the warm strip light hugging the studio horizon — the amber band that fringes the reflections
coolColorCool Light#82a7e6—Color of the cool wash below the horizon — the steel-blue zone the darker reflections fall into
bevelWidthBevel Width0.0280.005 – 0.2 (step 0.001)Width of the polished edge bevel, relative to the shape — thin for machined jewellery edges, wide for soft pillowed metal
bevelShapeBevel Profile0.550 – 1 (step 0.01)Bevel profile — 0 = one smooth round fillet, 1 = machined: a steep outer fillet, a chamfer plateau and an inner knee, each catching its own line of light
curvatureCurvature0.50 – 1 (step 0.01)Convex doming of the faces — sweeps the big soft studio gradients across otherwise flat metal
wavinessWaviness0.150 – 1 (step 0.01)Pressed-metal imperfection — gently bends the face reflections and wobbles the bevel light lines so the surface reads as real
environmentEnvironment10 – 2 (step 0.01)Exposure of the reflected studio — the overall brilliance of the chrome
envRotationEnv Rotation00 – 360 (step 1)Rotates the whole reflected studio — spins where the softbox, flags and strips fall
softnessSoftness0.30 – 1 (step 0.01)Softness of the studio edges — 0 = razor polished reflections, 1 = satin diffusion
spectralAccent Lights0.90 – 2 (step 0.01)The colored accent lights: an amber glow hugging the softbox edge and an ice-blue wash below it. 0 = a fully achromatic black-and-white studio.
dispersionDispersion0.30 – 1 (step 0.01)Prismatic RGB splitting concentrated on the fast-curving bevel — thin rainbow micro-fringes along the edge highlights, distinct from the broad accent lights
shadowsShadows0.70 – 1 (step 0.01)Depth of the dark studio reflections — how hard the black side flags and floor crush toward graphite. 0 lifts them to a soft gray studio.
speedSpeed0.50 – 4 (step 0.01)Speed of the studio orbit — the whole lighting environment slowly wanders around the piece, sliding the reflections across faces and edges. 0 freezes it.
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

무대 조명을 비추는 크롬 장식처럼, 넓은 밝은 면과 어두운 반사 띠가 표면의 굴곡을 드러냅니다.

`bevelWidth`를 넓히면 모서리가 더 둥글고 도톰해지고, `curvature`는 평평한 면에 볼록한 느낌을 더합니다. `environment`는 반사된 스튜디오의 밝기를, `envRotation`은 반사 무늬의 방향을 바꿉니다. `softness`를 올리면 반사 경계가 퍼집니다.

자체 재질 생성기라 별도 입력은 필요하지 않습니다. 어두운 배경이나 단순한 색 면과 조합하면 반사가 잘 읽히며, 여러 반사·발광 효과를 한꺼번에 더하면 금속 윤곽이 묻힐 수 있습니다.

언제 쓰나

금속 워드마크, 제품 배지, 버튼의 고급스러운 모서리에 어울립니다. 실제 금속 색을 정확히 재현해야 하거나 밝은 반사가 작은 글자를 덮는 화면에는 피하세요.

페이지로 열기 ↗