* MaterialNode: Fix `dashOffset` with `LineDashedMaterial`. * Examples: Fix dash scale property.
@@ -220,7 +220,7 @@
gui.add( param, 'dash scale', 0.5, 1, 0.1 ).onChange( function ( val ) {
- matLine.dashScale = val;
+ matLine.scale = val;
matLineDashed.scale = val;
} );
@@ -386,6 +386,10 @@ class MaterialNode extends Node {
node = this.getTexture( scope ).r.sub( 1.0 ).mul( this.getFloat( 'aoMapIntensity' ) ).add( 1.0 );
+ } else if ( scope === MaterialNode.LINE_DASH_OFFSET ) {
+
+ node = ( material.dashOffset ) ? this.getFloat( scope ) : float( 0 );
} else {
const outputType = this.getNodeType( builder );