(composer: GPUComposer)
| 545 | * @private |
| 546 | */ |
| 547 | export function wrappedLineColorProgram(composer: GPUComposer) { |
| 548 | return new GPUProgram(composer, { |
| 549 | name: `wrappedLineColor`, |
| 550 | fragmentShader: ` |
| 551 | in vec2 v_lineWrapping; |
| 552 | uniform vec4 u_value; |
| 553 | out vec4 out_result; |
| 554 | void main() { |
| 555 | // Check if this line has wrapped. |
| 556 | if ((v_lineWrapping.x != 0.0 && v_lineWrapping.x != 1.0) || (v_lineWrapping.y != 0.0 && v_lineWrapping.y != 1.0)) { |
| 557 | // Render nothing. |
| 558 | discard; |
| 559 | return; |
| 560 | } |
| 561 | out_result = vec4(u_value); |
| 562 | }`, |
| 563 | }); |
| 564 | } |
nothing calls this directly
no outgoing calls
no test coverage detected