Closed andreasplesch closed 9 months ago
isCCW : function ()
{
var ccw = this._cf.geometry.node._vf.ccw;
if ( x3dom.isa( this._cf.geometry.node, x3dom.nodeTypes.BufferGeometry ))
{
if ( this._graph.globalMatrix.det() < 0 ) return !ccw
}
return ccw;
},
https://github.com/KhronosGroup/glTF-Asset-Generator/blob/master/Output/Positive/Node_NegativeScale/README.md
has a series of glTF tests which use negative scaling.
They require flipping of the ccw field of BufferGeometry in case the world transform determinant is negative.