HDRI/Env Texture for AR

I’m working on an AR project with an imported mesh. I wanted to know if it’s possible to use an env texture or HDRI for lighting without visibly seeing the texture in the background. With this being AR I’d like to use the actual environment that the camera is seeing. I’m not sure if this is possible but I figure I’d ask.

On that note, is there a recommended way to light PBR assets in AR environments? Thanks!

I forgot you don’t need to assign the env texture to a skybox. This is what I added and it worked fine with the lighting/reflections in the model:

   const envTex = BABYLON.CubeTexture.CreateFromPrefilteredData(
     '/WebAR/xmas_bg.env',
    scene
   )

  envTex.gammaSpace = false

   envTex.rotationY = Math.PI

  scene.environmentTexture = envTex
2 Likes

This is cool @jgonzosan - did you get it to work using the environment the camera is seeing as the environment?