build/browser/index.js
/**
         * @param contextManager This will usually be provided by the `Engine`.
         * @param options
         * @param levelUp Leave as zero unless you are extending this class.
         */
@param contextManager This will usually be provided by the `Engine`.
@param options
@param levelUp Leave as zero unless you are extending this class.
@param contextManager This will usually be provided by the ` Engine ` . @param options @param levelUp Leave as zero unless you are extending this class .
function Basis(contextManager, options, levelUp) {
            if (options === void 0) { options = {}; }
            if (levelUp === void 0) { levelUp = 0; }
            var _this = _super.call(this, void 0, void 0, contextManager, { axis: ds.axis, meridian: ds.meridian }, levelUp + 1) || this;
            _this.uPointA = new Vector3Facet(uPointA);
            _this.uPointB = new Vector3Facet(uPointB);
            _this.uPointC = new Vector3Facet(uPointC);
            _this.uColorA = new ColorFacet(uColorA);
            _this.uColorB = new ColorFacet(uColorB);
            _this.uColorC = new ColorFacet(uColorC);
            _this.setLoggingName("Basis");
            _this.uPointA.vector = Vector3.vector(1, 0, 0);
            _this.colorA.copy(Color.red);
            _this.uPointB.vector = Vector3.vector(0, 1, 0);
            _this.colorB.copy(Color.green);
            _this.uPointC.vector = Vector3.vector(0, 0, 1);
            _this.colorC.copy(Color.blue);
            var primitive = {
                mode: exports.BeginMode.LINES,
                attributes: {
                    aPointIndex: { values: [0, 1, 0, 2, 0, 3], size: 1 },
                    aColorIndex: { values: [1, 1, 2, 2, 3, 3], size: 1 }
                }
            };
            var geometry = new GeometryArrays(contextManager, primitive);
            _this.geometry = geometry;
            geometry.release();
            var material = new ShaderMaterial(vertexShaderSrc$1(), fragmentShaderSrc$1(), [], contextManager);
            _this.material = material;
            material.release();
            _this.setFacet("Basis-" + uPointA, _this.uPointA);
            _this.setFacet("Basis-" + uPointB, _this.uPointB);
            _this.setFacet("Basis-" + uPointC, _this.uPointC);
            _this.setFacet("Basis-" + uColorA, _this.uColorA);
            _this.setFacet("Basis-" + uColorB, _this.uColorB);
            _this.setFacet("Basis-" + uColorC, _this.uColorC);
            setColorOption(_this, options, void 0);
            setDeprecatedOptions(_this, options);
            if (levelUp === 0) {
                _this.synchUp();
            }
            return _this;
        }
function Basis ( contextManager , options , levelUp ) { if ( options === void 0 ) { options = { } ; } if ( levelUp === void 0 ) { levelUp = 0 ; } var _this = _super . call ( this , void 0 , void 0 , contextManager , { axis : ds . axis , meridian : ds . meridian } , levelUp + 1 ) || this ; _this . uPointA = new Vector3Facet ( uPointA ) ; _this . uPointB = new Vector3Facet ( uPointB ) ; _this . uPointC = new Vector3Facet ( uPointC ) ; _this . uColorA = new ColorFacet ( uColorA ) ; _this . uColorB = new ColorFacet ( uColorB ) ; _this . uColorC = new ColorFacet ( uColorC ) ; _this . setLoggingName ( "Basis" ) ; _this . uPointA . vector = Vector3 . vector ( 1 , 0 , 0 ) ; _this . colorA . copy ( Color . red ) ; _this . uPointB . vector = Vector3 . vector ( 0 , 1 , 0 ) ; _this . colorB . copy ( Color . green ) ; _this . uPointC . vector = Vector3 . vector ( 0 , 0 , 1 ) ; _this . colorC . copy ( Color . blue ) ; var primitive = { mode : exports . BeginMode . LINES , attributes : { aPointIndex : { values : [ 0 , 1 , 0 , 2 , 0 , 3 ] , size : 1 } , aColorIndex : { values : [ 1 , 1 , 2 , 2 , 3 , 3 ] , size : 1 } } } ; var geometry = new GeometryArrays ( contextManager , primitive ) ; _this . geometry = geometry ; geometry . release ( ) ; var material = new ShaderMaterial ( vertexShaderSrc$1 ( ) , fragmentShaderSrc$1 ( ) , [ ] , contextManager ) ; _this . material = material ; material . release ( ) ; _this . setFacet ( "Basis-" + uPointA , _this . uPointA ) ; _this . setFacet ( "Basis-" + uPointB , _this . uPointB ) ; _this . setFacet ( "Basis-" + uPointC , _this . uPointC ) ; _this . setFacet ( "Basis-" + uColorA , _this . uColorA ) ; _this . setFacet ( "Basis-" + uColorB , _this . uColorB ) ; _this . setFacet ( "Basis-" + uColorC , _this . uColorC ) ; setColorOption ( _this , options , void 0 ) ; setDeprecatedOptions ( _this , options ) ; if ( levelUp === 0 ) { _this . synchUp ( ) ; } return _this ; }
@param contextManager This will usually be provided by the `Engine`.
@param contextManager This will usually be provided by the ` Engine ` .