Model texture display error

I used gltfpack to compress the model, command line: “gltfpack.exe -i trash.gltf -cc -kn -o trash.glb”, after I loaded it into my three.js using gltfloader, I found that some of them showed Clay color, but when I load this model on a gltfviewer platform, the correct color is displayed, why is this?

You maybe have a different lighting setup and/or env map compared to gltfviewer

context: canvas.getContext(“webgl”)
I found the problem is here, what should I do?

You would need to share more code

1 Like