MCPcopy Index your code
hub / github.com/stemkoski/stemkoski.github.com / renderLine

Function renderLine

Three.js/js/ThreeDebug.js:9550–9572  ·  view source on GitHub ↗
( v1, v2, element, material, scene )

Source from the content-addressed store, hash-verified

9548 }
9549
9550 function renderLine( v1, v2, element, material, scene ) {
9551
9552 setOpacity( material.opacity );
9553 setBlending( material.blending );
9554
9555 _context.beginPath();
9556 _context.moveTo( v1.positionScreen.x, v1.positionScreen.y );
9557 _context.lineTo( v2.positionScreen.x, v2.positionScreen.y );
9558 _context.closePath();
9559
9560 if ( material instanceof THREE.LineBasicMaterial ) {
9561
9562 setLineWidth( material.linewidth );
9563 setLineCap( material.linecap );
9564 setLineJoin( material.linejoin );
9565 setStrokeStyle( material.color.getContextStyle() );
9566
9567 _context.stroke();
9568 _bboxRect.inflate( material.linewidth * 2 );
9569
9570 }
9571
9572 }
9573
9574 function renderFace3( v1, v2, v3, uv1, uv2, uv3, element, material, scene ) {
9575

Callers 1

ThreeDebug.jsFile · 0.70

Calls 7

getLineNodeFunction · 0.85
setOpacityFunction · 0.70
setBlendingFunction · 0.70
setLineWidthFunction · 0.70
setLineCapFunction · 0.70
setLineJoinFunction · 0.70
setStrokeStyleFunction · 0.70

Tested by

no test coverage detected