UNPKG

sunrize

Version:
24 lines (20 loc) 677 B
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; }, });