Skip to content

resolutionScale is not set in some cases #1

@python273

Description

@python273

On https://dev.macrostrat.org/mars/syrtis-jezero/layers
if you change "terrain exaggeration", it doesn't set correct resolutionScale

Seems to be related to this code, it only sets it once, since resolutionScale is not changed, but there's a new element:

useEffect(() => {
const { cesiumElement } = ref.current ?? {};
if (cesiumElement == null) return;
ref.current.cesiumElement.resolutionScale = resolutionScale;
// Enable anti-aliasing
ref.current.cesiumElement.scene.postProcessStages.fxaa.enabled = true;
}, [resolutionScale]);

Not related, but seems like "Quality" selector is also broken

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions