1. A concise explanation of the problem you’re experiencing.
gltf-pipeline fails on normal compression at node_modules\gltf-pipeline\lib\octEncodeNormals.js:94:21.
I quess the reason is that gltf-pipeline from command line does not have webgl context available?
2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.
This is how I fixed my version temporarily, marked red:
// GLSLModernizer inserts its own layout qualifiers
// at this position in the source
if (context != undefined && context.webgl2) {
result += ‘#define OUTPUT_DECLARATION\n\n’;
}
// append built-ins
if (shaderSource.includeBuiltIns) {
result += getBuiltinsAndAutomaticUniforms(combinedSources);
}
// reset line number
result += ‘\n#line 0\n’;
// append actual source
result += combinedSources;
// modernize the source
if (context != undefined && context.webgl2) {
result = modernizeShader(result, isFragmentShader, true);
}
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
4. The Cesium version you’re using, your operating system and browser.
gltf-pipeline HEAD