Skip to content

Commit 22c1e2e

Browse files
committed
some more upgrades of dev to match the premultiplied multiple blend modes.
1 parent c892c05 commit 22c1e2e

7 files changed

Lines changed: 14 additions & 14 deletions

src/materials/LineBasicMaterial.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* linecap: "round",
1111
* linejoin: "round",
1212
*
13-
* blending: THREE.PremultipliedAlphaBlending,
13+
* blending: THREE.PremultipliedAlphaNormalBlending,
1414
* depthTest: <bool>,
1515
* depthWrite: <bool>,
1616
*
@@ -32,7 +32,7 @@ THREE.LineBasicMaterial = function ( parameters ) {
3232
this.linecap = 'round';
3333
this.linejoin = 'round';
3434

35-
this.blending = THREE.PremultipliedAlphaBlending;
35+
this.blending = THREE.PremultipliedAlphaNormalBlending;
3636

3737
this.vertexColors = THREE.NoColors;
3838

src/materials/LineDashedMaterial.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* dashSize: <float>,
1212
* gapSize: <float>,
1313
*
14-
* blending: THREE.PremultipliedAlphaBlending,
14+
* blending: THREE.PremultipliedAlphaNormalBlending,
1515
* depthTest: <bool>,
1616
* depthWrite: <bool>,
1717
*
@@ -35,7 +35,7 @@ THREE.LineDashedMaterial = function ( parameters ) {
3535
this.dashSize = 3;
3636
this.gapSize = 1;
3737

38-
this.blending = THREE.PremultipliedAlphaBlending;
38+
this.blending = THREE.PremultipliedAlphaNormalBlending;
3939

4040
this.vertexColors = THREE.NoColors;
4141

src/materials/MeshBasicMaterial.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* refractionRatio: <float>,
2121
*
2222
* shading: THREE.SmoothShading,
23-
* blending: THREE.PremultipliedAlphaBlending,
23+
* blending: THREE.PremultipliedAlphaNormalBlending,
2424
* depthTest: <bool>,
2525
* depthWrite: <bool>,
2626
*
@@ -61,7 +61,7 @@ THREE.MeshBasicMaterial = function ( parameters ) {
6161
this.fog = true;
6262

6363
this.shading = THREE.SmoothShading;
64-
this.blending = THREE.PremultipliedAlphaBlending;
64+
this.blending = THREE.PremultipliedAlphaNormalBlending;
6565

6666
this.wireframe = false;
6767
this.wireframeLinewidth = 1;

src/materials/MeshLambertMaterial.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* reflectivity: <float>,
2828
* refractionRatio: <float>,
2929
*
30-
* blending: THREE.PremultipliedAlphaBlending,
30+
* blending: THREE.PremultipliedAlphaNormalBlending,
3131
* depthTest: <bool>,
3232
* depthWrite: <bool>,
3333
*
@@ -75,7 +75,7 @@ THREE.MeshLambertMaterial = function ( parameters ) {
7575

7676
this.fog = true;
7777

78-
this.blending = THREE.PremultipliedAlphaBlending;
78+
this.blending = THREE.PremultipliedAlphaNormalBlending;
7979

8080
this.wireframe = false;
8181
this.wireframeLinewidth = 1;

src/materials/MeshPhongMaterial.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* refractionRatio: <float>,
4141
*
4242
* shading: THREE.SmoothShading,
43-
* blending: THREE.PremultipliedAlphaBlending,
43+
* blending: THREE.PremultipliedAlphaNormalBlending,
4444
* depthTest: <bool>,
4545
* depthWrite: <bool>,
4646
*
@@ -101,7 +101,7 @@ THREE.MeshPhongMaterial = function ( parameters ) {
101101
this.fog = true;
102102

103103
this.shading = THREE.SmoothShading;
104-
this.blending = THREE.PremultipliedAlphaBlending;
104+
this.blending = THREE.PremultipliedAlphaNormalBlending;
105105

106106
this.wireframe = false;
107107
this.wireframeLinewidth = 1;

src/materials/MeshStandardMaterial.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
* refractionRatio: <float>,
4242
*
4343
* shading: THREE.SmoothShading,
44-
* blending: THREE.PremultipliedAlphaBlending,
44+
* blending: THREE.PremultipliedAlphaNormalBlending,
4545
* depthTest: <bool>,
4646
* depthWrite: <bool>,
4747
*
@@ -104,7 +104,7 @@ THREE.MeshStandardMaterial = function ( parameters ) {
104104
this.fog = true;
105105

106106
this.shading = THREE.SmoothShading;
107-
this.blending = THREE.PremultipliedAlphaBlending;
107+
this.blending = THREE.PremultipliedAlphaNormalBlending;
108108

109109
this.wireframe = false;
110110
this.wireframeLinewidth = 1;

src/materials/PointsMaterial.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* size: <float>,
1111
* sizeAttenuation: <bool>,
1212
*
13-
* blending: THREE.PremultipliedAlphaBlending,
13+
* blending: THREE.PremultipliedAlphaNormalBlending,
1414
* depthTest: <bool>,
1515
* depthWrite: <bool>,
1616
*
@@ -33,7 +33,7 @@ THREE.PointsMaterial = function ( parameters ) {
3333
this.size = 1;
3434
this.sizeAttenuation = true;
3535

36-
this.blending = THREE.PremultipliedAlphaBlending;
36+
this.blending = THREE.PremultipliedAlphaNormalBlending;
3737

3838
this.vertexColors = THREE.NoColors;
3939

0 commit comments

Comments
 (0)