Skip to content

Commit 74643d3

Browse files
committed
fix(shop): tone down decal texture, tighter knit, brighter decals
- Decal normal intensity reduced (1.5→0.3 light, 0.6→0.1 dark) - Decal color brightened (#bbbbbb→#f0f0f0 light, #aaaaaa→#dddddd dark) - Shirt normal reduced in light mode (0.8→0.4) - Tighter knit: fabric map 12→20× repeat, bump 16→24×, stitch 8×10→5×6px
1 parent 167e48d commit 74643d3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/components/shop/ShopHero3D.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ function useFabricTexture(isDark: boolean) {
163163
const texture = new THREE.CanvasTexture(canvas)
164164
texture.wrapS = THREE.RepeatWrapping
165165
texture.wrapT = THREE.RepeatWrapping
166-
texture.repeat.set(12, 12)
166+
texture.repeat.set(20, 20)
167167
texture.anisotropy = 8
168168
return texture
169169
}, [isDark])
@@ -183,8 +183,8 @@ function useBumpTexture() {
183183

184184
// Draw a jersey-knit V pattern — interlocking V shapes that mimic
185185
// the face side of a knit cotton tee
186-
const stitchW = 8 // width of one stitch column
187-
const stitchH = 10 // height of one stitch row
186+
const stitchW = 5 // width of one stitch column
187+
const stitchH = 6 // height of one stitch row
188188
ctx.lineWidth = 1.5
189189
ctx.lineCap = 'round'
190190

@@ -238,7 +238,7 @@ function useBumpTexture() {
238238
const texture = new THREE.CanvasTexture(canvas)
239239
texture.wrapS = THREE.RepeatWrapping
240240
texture.wrapT = THREE.RepeatWrapping
241-
texture.repeat.set(16, 16)
241+
texture.repeat.set(24, 24)
242242
texture.anisotropy = 8
243243
return texture
244244
}, [])
@@ -374,7 +374,7 @@ function ShirtWithDecals({
374374
map={fabricMap}
375375
normalMap={bumpMap}
376376
normalScale={
377-
new THREE.Vector2(isDark ? 0.03 : 0.8, isDark ? 0.03 : 0.8)
377+
new THREE.Vector2(isDark ? 0.03 : 0.4, isDark ? 0.03 : 0.4)
378378
}
379379
roughness={isDark ? 0.9 : 0.7}
380380
metalness={0}
@@ -394,15 +394,15 @@ function ShirtWithDecals({
394394
map={decalTexture}
395395
normalMap={decalNormalMap}
396396
normalScale={
397-
new THREE.Vector2(isDark ? 0.6 : 1.5, isDark ? 0.6 : 1.5)
397+
new THREE.Vector2(isDark ? 0.1 : 0.3, isDark ? 0.1 : 0.3)
398398
}
399399
transparent
400400
polygonOffset
401401
polygonOffsetFactor={-1}
402402
roughness={0.95}
403403
metalness={0}
404404
envMapIntensity={0.3}
405-
color={isDark ? '#aaaaaa' : '#bbbbbb'}
405+
color={isDark ? '#dddddd' : '#f0f0f0'}
406406
side={THREE.FrontSide}
407407
/>
408408
</Decal>

0 commit comments

Comments
 (0)