sunrize
Version:
Sunrize — A Multi-Platform X3D Editor
24 lines (20 loc) • 677 B
JavaScript
const X3D = require ("../../X3D");
Object .assign (X3D .ElevationGrid .prototype,
{
toPrimitive (executionContext = this .getExecutionContext ())
{
const geometry = this .toIndexedFaceSet (executionContext,
{
fogCoord: !!this ._fogCoord .getValue (),
color: !!this ._color .getValue (),
texCoord: true,
tangent: !!this ._tangent .getValue (),
normal: !!this ._normal .getValue (),
});
geometry ._metadata = this ._metadata;
geometry ._solid = this ._solid;
geometry ._ccw = this ._ccw;
geometry ._creaseAngle = this ._creaseAngle;
return geometry;
},
});