Load glb and read/ set backfaceculling==false from scene.materials

we face difficulty to assign backfaceculling=false for Array values from scene.materials.
using developer option , easy to correct, but not able to do in code.

Thank you :slight_smile:

scene.materials.forEach((mat)=>{
    mat.backFaceCulling = false;
})

Example - Babylon.js Playground

At first, Thank you for your support. but i still face the problem, this code doent solve my issueā€¦i have attach Array 1 backfaceculling still in true :frowning:

Just a guess, but do you set backFaceCulling before all materials (models) are loaded?

1 Like

before loaded, problem solved !!!
Thank you so much :slight_smile:

You are welcome :slight_smile: