MCPcopy
hub / github.com/stemkoski/stemkoski.github.com / setBlending

Function setBlending

7DFPS/js/Three.js:16409–16431  ·  view source on GitHub ↗
( value )

Source from the content-addressed store, hash-verified

16407 }
16408
16409 function setBlending( value ) {
16410
16411 if ( _contextGlobalCompositeOperation !== value ) {
16412
16413 if ( value === THREE.NormalBlending ) {
16414
16415 _context.globalCompositeOperation = 'source-over';
16416
16417 } else if ( value === THREE.AdditiveBlending ) {
16418
16419 _context.globalCompositeOperation = 'lighter';
16420
16421 } else if ( value === THREE.SubtractiveBlending ) {
16422
16423 _context.globalCompositeOperation = 'darker';
16424
16425 }
16426
16427 _contextGlobalCompositeOperation = value;
16428
16429 }
16430
16431 }
16432
16433 function setLineWidth( value ) {
16434

Callers 5

Three.jsFile · 0.70
renderParticleFunction · 0.70
renderLineFunction · 0.70
renderFace3Function · 0.70
renderFace4Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected