Skip to content

Commit

Permalink
fix: undefined behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
keiya01 committed Jun 28, 2023
1 parent baad01d commit 2b2d4e7
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,14 @@ export const useOverrideGlobeShader = ({
hasVertexNormals,
}: {
cesium: RefObject<CesiumComponentRef<Viewer>>;
sphericalHarmonicCoefficients: Cartesian3[];
sphericalHarmonicCoefficients?: Cartesian3[];
globeShadowDarkness?: number;
globeImageBasedLighting?: boolean;
hasVertexNormals?: boolean;
}) => {
const sphericalHarmonicCoefficientsRefFunc = useImmutableFunction(sphericalHarmonicCoefficients);
const sphericalHarmonicCoefficientsRefFunc = useImmutableFunction(
sphericalHarmonicCoefficients || [],
);
const globeImageBasedLightingRefFunc = useImmutableFunction(globeImageBasedLighting);

useEffect(() => {
Expand Down

0 comments on commit 2b2d4e7

Please sign in to comment.