Skip to content

Commit

Permalink
fix: cloud opacity
Browse files Browse the repository at this point in the history
  • Loading branch information
drcmda committed Nov 2, 2023
1 parent 7335645 commit 1169c02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Cloud.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ export const Clouds = /* @__PURE__ */ React.forwardRef<Group, CloudsProps>(
`varying float vOpacity;
` +
shader.fragmentShader.replace(
'#include <opaque_fragment>',
`#include <opaque_fragment>
'#include <output_fragment>',
`#include <output_fragment>
gl_FragColor = vec4(outgoingLight, diffuseColor.a * vOpacity);
`
)
Expand Down

1 comment on commit 1169c02

@vercel
Copy link

@vercel vercel bot commented on 1169c02 Nov 2, 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.