File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -537,6 +537,33 @@ class Line2NodeMaterial extends NodeMaterial {
537537
538538 }
539539
540+ /**
541+ * Copies the properties of the given material to this instance.
542+ *
543+ * @param {Line2NodeMaterial } source - The material to copy.
544+ * @return {Line2NodeMaterial } A reference to this material.
545+ */
546+ copy ( source ) {
547+
548+ super . copy ( source ) ;
549+
550+ this . vertexColors = source . vertexColors ;
551+ this . dashOffset = source . dashOffset ;
552+
553+ this . lineColorNode = source . lineColorNode ;
554+ this . offsetNode = source . offsetNode ;
555+ this . dashScaleNode = source . dashScaleNode ;
556+ this . dashSizeNode = source . dashSizeNode ;
557+ this . gapSizeNode = source . gapSizeNode ;
558+
559+ this . _useDash = source . _useDash ;
560+ this . _useAlphaToCoverage = source . _useAlphaToCoverage ;
561+ this . _useWorldUnits = source . _useWorldUnits ;
562+
563+ return this ;
564+
565+ }
566+
540567}
541568
542569export default Line2NodeMaterial ;
You can’t perform that action at this time.
0 commit comments