@fern-solutions/aframe-fix-fog

1.0.0 • Public • Published

Fix Fog

npm version npm version github twitter ko-fi

This changes the fog depth computation from camera space to world space. This improves the fog effect in VR, most noticeably in case of dense fog. It does this by changing some of the shader chunks of Three.js. For more details, read the dev log: A-Frame Adventures 02 - Fixing Fog

Checkout the example: Online Demo | Source

Usage

Load the script from npm or add the following script tag:

<script src="https://unpkg.com/@fern-solutions/aframe-fix-fog/dist/fix-fog.umd.min.js"></script>

That's all, it will automatically update the shader chunks :-)

Readme

Keywords

Package Sidebar

Install

npm i @fern-solutions/aframe-fix-fog

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

5.3 kB

Total Files

5

Last publish

Collaborators

  • mrxz