탄소 섬유 직조

Carbon Fiber

맞물린 탄소 섬유 띠가 만드는 퀼팅 격자와 방향성 있는 광택을 입힙니다.

다른 이름: CarbonFiberCarbon fiberCarbon-fibre weave

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

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

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

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

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

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

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

속성(props) · CarbonFiber

값을 바꾸면 위 데모와 코드 탭에 바로 반영됩니다. 설명은 라이브러리 레지스트리의 영어 원문(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 carbon shape
scaleScale10.1 – 3 (step 0.01)Scale of the carbon shape (1 = default size)
rotationRotation00 – 360 (step 1)Rotation of the carbon shape in degrees
lightColorFiber Sheen#b9bdc6—The bright tone of the fibre sheen — recolor for forged/colored carbon (red, blue, bronze)
darkColorResin Color#0b0c0e—The deep resin tone the weave falls to in shadow — near-black for classic carbon
weaveStyleWeavetwilltwill · plainWeave pattern — plain (checkerboard) or 2×2 twill (the diagonal supercar weave)
weaveScaleWeave Scale302 – 50 (step 0.5)Number of woven tows across the shape — higher = finer, denser weave
weaveAngleWeave Angle00 – 360 (step 1)Rotates the whole weave grid in degrees
reliefWeave Depth0.50 – 1 (step 0.01)Depth of the quilted weave — how far each tow bulges, catching light on its crown and shadowing the valleys between
fiberSheenFiber Sheen1.20 – 1.5 (step 0.01)Strength of the anisotropic fibre sheen — the directional satin glint running along each tow
roughnessRoughness0.50 – 1 (step 0.01)Softness of the fibre sheen — 0 = tight crisp glints, 1 = soft matte satin
clearcoatClearcoat1.20 – 2 (step 0.01)Strength of the glossy lacquer coat — the sharp studio reflections of the wet clearcoat over the weave
environmentEnvironment20 – 2 (step 0.01)Strength of the reflected studio lighting seen in the clearcoat
envRotationEnv Rotation00 – 360 (step 1)Rotates the reflected studio — spins where the bright reflections fall
lightAngleLight Angle2150 – 360 (step 1)Direction of the key light for the fibre sheen, in degrees
bevelWidthBevel Width0.050.005 – 0.2 (step 0.001)Width of the edge bevel, relative to the shape — thin for machined jewellery edges, wide for soft pillowed metal
bevelShapeBevel Profile00 – 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
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

탄소 섬유 시트의 격자 무늬를 확대한 듯, 가로세로 띠가 맞물리고 각 띠의 윗면에서 빛이 반짝입니다.

`weaveStyle`은 바둑판형 평직과 사선 능직을 고릅니다. `weaveScale`을 올리면 직조가 더 촘촘해지고, `weaveAngle`은 격자의 방향을 돌립니다. `relief`는 띠의 볼록한 높낮이를, `fiberSheen`은 섬유를 따라 흐르는 광택을 조절합니다.

표면 재질로 로고나 패널에 쓸 수 있고, 단색 바탕을 두면 직조가 잘 읽힙니다. 작은 글자나 가는 선 아래에서는 격자와 광택이 획을 덮을 수 있습니다.

언제 쓰나

자동차·기기 패널, 스포츠 장비, 기술적인 로고 배경에 잘 맞습니다. 작은 글자나 가는 윤곽을 그대로 보여 줘야 하는 곳에는 피하세요.

페이지로 열기 ↗