arenaxr / arena-web-core

An environment to view and interact in multiuser virtual and augmented reality.
https://docs.arenaxr.org
BSD 3-Clause "New" or "Revised" License
37 stars 28 forks source link

Feature: webxr lighting estimation #393

Open hi-liang opened 2 years ago

hi-liang commented 2 years ago

New feature support in aframe@1.3.0, adding AR lighting estimation per example:

    <a-scene
       webxr="optionalFeatures: light-estimation;"
       background='directionalLightEl:a-light[type="directional"];probeLightEl:a-light[type="probe"];'>

        <a-light type="probe"></a-light>
        <a-light light="castShadow:true" type="directional" position="1 2 1"></a-light>

Some tweaking may be required to figure out proper initial light settings (maybe it moves automatically afterwards?)

hi-liang commented 2 years ago

Backlogged because apparently this feature was reverted in AFRAME 1.3 release but not documented correctly.

hi-liang commented 1 year ago

This was restored apparently? Reflection documentation has been updated: https://aframe.io/docs/1.4.0/components/reflection.html