( v1, v2, element, material, scene )
| 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 |
no test coverage detected