Lighting Method on Mesh

Hey everyone,

I want to ask about lighting. I have a 3D object. When I upload the object to the Babylon sandbox, the 3D object is clearly visible. But when I put it in my code, the object looks dark even though I have given light to the object. My question is, what kind of lighting is in a Babylon sandbox, and how do you define it? Thanks.

Here is the playground :


My Code

As you’re using PBR materials, I suggest you to read the doc about:

The last one about HDR environment is part of the answer to your question.
To easily know about the .env used by sandbox, just check the network tab of your favorite browser’ developper tools:

Here an example with your scene:


Thank you very much. I still have a lot to learn. :slightly_smiling_face: