UNPKG

sunrize

Version:
29 lines (20 loc) 902 B
"use strict"; const X3DTextureProjectorNodeTool = require ("./X3DTextureProjectorNodeTool"); class TextureProjectorParallelTool extends X3DTextureProjectorNodeTool { async initializeTool () { await super .initializeTool (); this .tool .getField ("parallelFieldOfView") .addReference (this .node ._fieldOfView); this .tool .getField ("parallelNearDistance") .addReference (this .node ._nearDistance); this .tool .getField ("parallelFarDistance") .addReference (this .node ._farDistance); this .node ._aspectRatio .addFieldInterest (this .tool .getField ("parallelAspectRatio")); this .tool .parallelAspectRatio = this .node ._aspectRatio; } disposeTool () { this .node ._aspectRatio .removeFieldInterest (this .tool .getField ("parallelAspectRatio")); super .disposeTool (); } } module .exports = TextureProjectorParallelTool;