1. A concise explanation of the problem you're experiencing.
function processPbrMaterials(gltf, options) {
options = defaultValue(options, {});
// No need to create new techniques if they already exist,
// the shader should handle these values
if (hasExtension(gltf, 'KHR_techniques_webgl')) {
return gltf;
}
If I commented out the if judgment here, the model rendered black, and I tried to modify other judgments, but it was unsuccessful. I also tried to modify the b3dm file. I really don't know how to do it. I hope you can show me how to do it. Thank you very much.
2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
I implemented model flattening by modifying the source code, but when b3dm had its own shader, the shader code I added did not work
4. The Cesium version you're using, your operating system and browser.
1.57