How to use the DstAlphaFactor function from three

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

826
827
828
829
830
831
832
833
834
835
this.materialCopy.depthWrite = false;
this.materialCopy.blending = THREE.CustomBlending;
this.materialCopy.blendSrc = THREE.DstColorFactor;
this.materialCopy.blendDst = THREE.ZeroFactor;
this.materialCopy.blendEquation = THREE.AddEquation;
this.materialCopy.blendSrcAlpha = THREE.DstAlphaFactor;
this.materialCopy.blendDstAlpha = THREE.ZeroFactor;
this.materialCopy.blendEquationAlpha = THREE.AddEquation;

if ( THREE.UnpackDepthRGBAShader === undefined ) {
fork icon3
star icon7
watch icon1

+ 17 other calls in file

739
740
741
742
743
744
745
746
747
748
// 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) {
    params.side = three_1.DoubleSide;
}
fork icon1
star icon3
watch icon0

+ 4 other calls in file

121
122
123
124
125
126
127
128
129
130
this.materialCopy.depthWrite = false;
this.materialCopy.blending = three_1.CustomBlending;
this.materialCopy.blendSrc = three_1.DstColorFactor;
this.materialCopy.blendDst = three_1.ZeroFactor;
this.materialCopy.blendEquation = three_1.AddEquation;
this.materialCopy.blendSrcAlpha = three_1.DstAlphaFactor;
this.materialCopy.blendDstAlpha = three_1.ZeroFactor;
this.materialCopy.blendEquationAlpha = three_1.AddEquation;
if (UnpackDepthRGBAShader_1.UnpackDepthRGBAShader === undefined) {
    console.error('THREE.SAOPass relies on UnpackDepthRGBAShader');
fork icon1
star icon3
watch icon0

Other functions in three

Sorted by popularity

function icon

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