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

Function setBlending

Three.js/js/Three62dev.js:16262–16284  ·  view source on GitHub ↗
( value )

Source from the content-addressed store, hash-verified

16260 }
16261
16262 function setBlending( value ) {
16263
16264 if ( _contextGlobalCompositeOperation !== value ) {
16265
16266 if ( value === THREE.NormalBlending ) {
16267
16268 _context.globalCompositeOperation = 'source-over';
16269
16270 } else if ( value === THREE.AdditiveBlending ) {
16271
16272 _context.globalCompositeOperation = 'lighter';
16273
16274 } else if ( value === THREE.SubtractiveBlending ) {
16275
16276 _context.globalCompositeOperation = 'darker';
16277
16278 }
16279
16280 _contextGlobalCompositeOperation = value;
16281
16282 }
16283
16284 }
16285
16286 function setLineWidth( value ) {
16287

Callers 4

Three62dev.jsFile · 0.70
renderParticleFunction · 0.70
renderLineFunction · 0.70
renderFace3Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected