MCPcopy Index your code
hub / github.com/stemkoski/stemkoski.github.com / setBlending

Function setBlending

Three.js/js/Three60.js:16216–16238  ·  view source on GitHub ↗
( value )

Source from the content-addressed store, hash-verified

16214 }
16215
16216 function setBlending( value ) {
16217
16218 if ( _contextGlobalCompositeOperation !== value ) {
16219
16220 if ( value === THREE.NormalBlending ) {
16221
16222 _context.globalCompositeOperation = 'source-over';
16223
16224 } else if ( value === THREE.AdditiveBlending ) {
16225
16226 _context.globalCompositeOperation = 'lighter';
16227
16228 } else if ( value === THREE.SubtractiveBlending ) {
16229
16230 _context.globalCompositeOperation = 'darker';
16231
16232 }
16233
16234 _contextGlobalCompositeOperation = value;
16235
16236 }
16237
16238 }
16239
16240 function setLineWidth( value ) {
16241

Callers 4

Three60.jsFile · 0.70
renderParticleFunction · 0.70
renderLineFunction · 0.70
renderFace3Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected