/aframe-environment-map-component

Automatically generate envmaps for reflections on PBR Materials

Primary LanguageJavaScriptMIT LicenseMIT

aframe-environment-map-component

Version License

Generate environment maps from aframe-environment-component for proper PBR reflections on metallic materials

Depends on aframe-environment-component version >= 1.0.1

For A-Frame.

Before

After

API

Property Description Default Value
position Position of the CubeCamera to capture the environment. Useful in case you need to get above an environments ground plane. {x: 0, y: 1, z: 0}
target querySelector string representing any environment elements. Anything matching this will be rendered in the environment map image .environment (this is what is used in aframe-environment-component)

Installation

Browser

See the example

npm

Install via npm:

npm install aframe-environment-map-component

Then require and use.

require('aframe');
require('aframe-environment-map-component');