Skip to content

Commit

Permalink
Simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed Dec 21, 2024
1 parent a3732a2 commit 81356fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
3 changes: 2 additions & 1 deletion example/r3f/atmosphere.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
</head>
<body>
<div id="info">
Example using <a href="https://cloud.google.com/blog/products/maps-platform/create-immersive-3d-map-experiences-photorealistic-3d-tiles">Google Photorealistic Tiles</a> & <a href="https://github.com/takram-design-engineering/three-geospatial">@takram/three-geospatial</a> atmosphere effects.
Example using <a href="https://cloud.google.com/blog/products/maps-platform/create-immersive-3d-map-experiences-photorealistic-3d-tiles">Google Photorealistic Tiles</a>
& <a href="https://github.com/takram-design-engineering/three-geospatial">@takram/three-geospatial</a> atmosphere effects.
<br/>
Google Cloud API Token required.
</div>
Expand Down
11 changes: 1 addition & 10 deletions example/r3f/atmosphere.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,23 +129,14 @@ function App() {
<Atmosphere
ref={ atmosphereRef }
textures='https://takram-design-engineering.github.io/three-geospatial/atmosphere'
correctAltitude={ true }
photometric={ true }
>
{/* Background */}
<Sky />
<Stars data='https://takram-design-engineering.github.io/three-geospatial/atmosphere/stars.bin' />

{/* Atmosphere effects */}
<EffectComposer ref={ composerRef } multisampling={ 0 } enableNormalPass>
<AerialPerspective
sunIrradiance={ true }
skyIrradiance={ true }
transmittance={ true }
inscatter={ true }
correctGeometricError={ true }
irradianceScale={ 2 / Math.PI }
/>
<AerialPerspective sunIrradiance skyIrradiance irradianceScale={ 2 / Math.PI } />
<LensFlare />
<ToneMapping mode={ ToneMappingMode.AGX } />
<SMAA />
Expand Down

0 comments on commit 81356fd

Please sign in to comment.