How to access the texture from the GLB mesh?

I have a glb file type mesh and i want to access the texture of the mesh in my code. By accessing the texture property I want to change the level property of the mesh which is defined in the texture. Please help me out

A way to do this is by accessing the texture through the material, like scene.getMeshByName("myMesh").material.albedoTexture

1 Like