How to use the OneMinusSrcAlphaFactor function from three

Find comprehensive JavaScript three.OneMinusSrcAlphaFactor code examples handpicked from public code repositorys.

737
738
739
740
741
742
743
744
745
746
//
params.fog = true;
// blend
params.blending = three_1.CustomBlending;
params.blendSrc = three_1.SrcAlphaFactor;
params.blendDst = three_1.OneMinusSrcAlphaFactor;
params.blendSrcAlpha = three_1.SrcAlphaFactor;
params.blendDstAlpha = three_1.DstAlphaFactor;
// side
if (data.metadata.format === 'pmx' && (material.flag & 0x1) === 1) {
fork icon1
star icon3
watch icon0

+ 4 other calls in file

564
565
566
567
568
569
570
571
572
573

// map texture to material, keep transparency and fix transparent z-fighting
var mat = new THREE.MeshLambertMaterial({map: texture, transparent: true, alphaTest: 0.5})
mat.blending = THREE.CustomBlending
mat.blendSrc = THREE.OneFactor
mat.blendDst = THREE.OneMinusSrcAlphaFactor

materials.push(mat)

// if animated texture
fork icon0
star icon2
watch icon0

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)