I’m passing texture to react/drei Decal object - but nothing is showing up
export function Centered(props) {
const { nodes, materials } = useGLTF(‘/centered-transformed.glb’)
const topFit = useRef()// console.log(topFit.current.geometry)
const texture = useTexture(‘/wsup.png’)
props.canvas.center.set(0.2,0.5)
texture.flipY = false
texture.repeat.set(4,4)return (
<group {…props} dispose={null}>
<mesh geometry={nodes.Wolf3D_Outfit_Top.geometry} ref={topFit} > <Decal map={texture} /> </mesh> </group>
)
}useGLTF.preload(‘/centered-transformed.glb’)
I tried using same texutre on meshStandardMaterial and its working, also I didn’t have any problem using Decals on other model so I guess problem would be about 3D object, but I still do not understand what can be causing this