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

Function setBlending

Three.js/js/Three66.js:17096–17118  ·  view source on GitHub ↗
( value )

Source from the content-addressed store, hash-verified

17094 }
17095
17096 function setBlending( value ) {
17097
17098 if ( _contextGlobalCompositeOperation !== value ) {
17099
17100 if ( value === THREE.NormalBlending ) {
17101
17102 _context.globalCompositeOperation = 'source-over';
17103
17104 } else if ( value === THREE.AdditiveBlending ) {
17105
17106 _context.globalCompositeOperation = 'lighter';
17107
17108 } else if ( value === THREE.SubtractiveBlending ) {
17109
17110 _context.globalCompositeOperation = 'darker';
17111
17112 }
17113
17114 _contextGlobalCompositeOperation = value;
17115
17116 }
17117
17118 }
17119
17120 function setLineWidth( value ) {
17121

Callers 4

Three66.jsFile · 0.70
renderSpriteFunction · 0.70
renderLineFunction · 0.70
renderFace3Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected