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

Function setBlending

Three.js/js/Three56.js:14567–14589  ·  view source on GitHub ↗
( value )

Source from the content-addressed store, hash-verified

14565 }
14566
14567 function setBlending( value ) {
14568
14569 if ( _contextGlobalCompositeOperation !== value ) {
14570
14571 if ( value === THREE.NormalBlending ) {
14572
14573 _context.globalCompositeOperation = 'source-over';
14574
14575 } else if ( value === THREE.AdditiveBlending ) {
14576
14577 _context.globalCompositeOperation = 'lighter';
14578
14579 } else if ( value === THREE.SubtractiveBlending ) {
14580
14581 _context.globalCompositeOperation = 'darker';
14582
14583 }
14584
14585 _contextGlobalCompositeOperation = value;
14586
14587 }
14588
14589 }
14590
14591 function setLineWidth( value ) {
14592

Callers 5

Three56.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