Skip to content

Commit

Permalink
chore(web): disable fxaa (#710)
Browse files Browse the repository at this point in the history
  • Loading branch information
keiya01 authored Sep 27, 2023
1 parent f0338c8 commit c7d0711
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/src/beta/lib/core/engines/Cesium/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -753,12 +753,13 @@ export default ({
useEffect(() => {
const viewer = cesium.current?.cesiumElement;
if (!viewer || viewer.isDestroyed()) return;
viewer.scene.postProcessStages.fxaa.enabled = property?.render?.antialias === "high";
// TODO: FXAA doesn't support alpha blending in Cesium, so we will enable FXAA when this is fixed.
// viewer.scene.postProcessStages.fxaa.enabled = property?.render?.antialias === "high";
viewer.scene.msaaSamples =
property?.render?.antialias === "extreme"
? 8
: property?.render?.antialias === "high"
? 0
? 6
: property?.render?.antialias === "medium"
? 4
: 1; // default as 1
Expand Down

0 comments on commit c7d0711

Please sign in to comment.