Skip to content

Commit

Permalink
fix: grid rotation affecting fog in a bad way
Browse files Browse the repository at this point in the history
  • Loading branch information
drcmda committed Dec 17, 2022
1 parent 70e0403 commit 937c0c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Grid.tsx
Expand Up @@ -119,8 +119,8 @@ export const Grid = React.forwardRef(
const uniforms1 = { cellSize, sectionSize, cellColor, sectionColor, cellThickness, sectionThickness }
const uniforms2 = { fadeDistance, fadeStrength, infiniteGrid, followCamera }
return (
<mesh ref={fRef} rotation-x={Math.PI} frustumCulled={false} {...props}>
<gridMaterial transparent extensions-derivatives {...uniforms1} {...uniforms2} />
<mesh ref={fRef} frustumCulled={false} {...props}>
<gridMaterial transparent extensions-derivatives side={THREE.DoubleSide} {...uniforms1} {...uniforms2} />
<planeGeometry args={args} />
</mesh>
)
Expand Down

1 comment on commit 937c0c9

@vercel
Copy link

@vercel vercel bot commented on 937c0c9 Dec 17, 2022

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.