Skip to content

Commit

Permalink
fix: tonemapping issues with latest three and meshportalmaterial
Browse files Browse the repository at this point in the history
  • Loading branch information
drcmda committed Oct 31, 2023
1 parent db1b93f commit 7335645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/MeshPortalMaterial.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ export const MeshPortalMaterial = /* @__PURE__ */ React.forwardRef(
blur={blur}
blend={0}
resolution={[size.width * viewport.dpr, size.height * viewport.dpr]}
toneMapped={false}
attach="material"
{...props}
>
Expand Down Expand Up @@ -262,6 +261,7 @@ function ManagePortalScene({
vec4 ta = texture2D(a, vUv);
vec4 tb = texture2D(b, vUv);
gl_FragColor = mix(tb, ta, blend);
#include <tonemapping_fragment>
#include <${version >= 154 ? 'colorspace_fragment' : 'encodings_fragment'}>
}`,
})
Expand Down

1 comment on commit 7335645

@vercel
Copy link

@vercel vercel bot commented on 7335645 Oct 31, 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.