UNPKG

@takram/three-atmosphere

Version:
44 lines (41 loc) 942 B
import type { OverwriteMathProps } from '@takram/three-geospatial/r3f' import type { AtmosphereMaterialProps } from '../AtmosphereMaterialBase' export function separateProps< T extends OverwriteMathProps<AtmosphereMaterialProps> >( params: T ): [ OverwriteMathProps<AtmosphereMaterialProps>, Omit<T, keyof AtmosphereMaterialProps> ] { const { irradianceTexture, scatteringTexture, transmittanceTexture, singleMieScatteringTexture, higherOrderScatteringTexture, ellipsoid, correctAltitude, sunDirection, sunAngularRadius, ground, renderTargetCount, ...others } = params return [ { irradianceTexture, scatteringTexture, transmittanceTexture, singleMieScatteringTexture, higherOrderScatteringTexture, ellipsoid, correctAltitude, sunDirection, sunAngularRadius, ground, renderTargetCount }, others ] }