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.
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) |
See the example
Install via npm:
npm install aframe-environment-map-component
Then require and use.
require('aframe');
require('aframe-environment-map-component');