Hello there!
I have a question about this little piece of code that seem wrong to me:
if (babylonPBRMaterial.backFaceCulling != null && !babylonPBRMaterial.backFaceCulling) {
if (!babylonPBRMaterial._twoSidedLighting) {
Tools.Warn(babylonPBRMaterial.name + ": Back-face culling enabled and two-sided lighting disabled is not supported in glTF.");
}
glTFMaterial.doubleSided = true;
}
The first if
is entered only when backface culling is actually disabled, which contradict what is said in the warning message.
And I donât get why âbackface culling enabled and two sided lighting disabledâ is a problem, in fact I find this logical, so shouldnât the message be Back-face culling disabled and two-sided lighting disabled...
to be correct both in accordance with the code, and in the factual correctness of the message ?