Skip to content

Commit

Permalink
docs(Decal): Moving polygonOffset to the Material (#1714)
Browse files Browse the repository at this point in the history
  • Loading branch information
wass08 authored Nov 15, 2023
1 parent 651dd99 commit 990eae1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1769,10 +1769,12 @@ The decal box has to intersect the surface, otherwise it will not be visible. if
position={[0, 0, 0]} // Position of the decal
rotation={[0, 0, 0]} // Rotation of the decal (can be a vector or a degree in radians)
scale={1} // Scale of the decal
polygonOffset
polygonOffsetFactor={-1} // The mesh should take precedence over the original
>
<meshBasicMaterial map={texture} />
<meshBasicMaterial
map={texture}
polygonOffset
polygonOffsetFactor={-1} // The material should take precedence over the original
/>
</Decal>
</mesh>
```
Expand Down

1 comment on commit 990eae1

@vercel
Copy link

@vercel vercel bot commented on 990eae1 Nov 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.