Skip to content

Commit ce67524

Browse files
authored
1 parent 1d4e0c9 commit ce67524

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

packages/dev/core/src/Engines/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class Constants {
1515
*/
1616
public static readonly ALPHA_COMBINE = 2;
1717
/**
18-
* Defines that alpha blending is COLOR=(1 - SRC) * DEST, ALPHA=SRC_ALPHA - DEST_ALPHA
18+
* Defines that alpha blending is COLOR=(1 - SRC) * DEST, ALPHA=SRC_ALPHA + DEST_ALPHA
1919
* Subtracts source from destination, leading to darker results
2020
* */
2121
public static readonly ALPHA_SUBTRACT = 3;

packages/dev/core/src/Materials/material.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ export class Material implements IAnimatable, IClipPlanesHolder {
612612
* | 0 | ALPHA_DISABLE | |
613613
* | 1 | ALPHA_ADD | Defines that alpha blending is COLOR=SRC_ALPHA * SRC + DEST, ALPHA=DEST_ALPHA |
614614
* | 2 | ALPHA_COMBINE | Defines that alpha blending is COLOR=SRC_ALPHA * SRC + (1 - SRC_ALPHA) * DEST, ALPHA=SRC_ALPHA + DEST_ALPHA |
615-
* | 3 | ALPHA_SUBTRACT | Defines that alpha blending is COLOR=(1 - SRC) * DEST, ALPHA=SRC_ALPHA - DEST_ALPHA |
615+
* | 3 | ALPHA_SUBTRACT | Defines that alpha blending is COLOR=(1 - SRC) * DEST, ALPHA=SRC_ALPHA + DEST_ALPHA |
616616
* | 4 | ALPHA_MULTIPLY | Defines that alpha blending is COLOR=DEST * SRC, ALPHA=SRC_ALPHA + DEST_ALPHA |
617617
* | 5 | ALPHA_MAXIMIZED | Defines that alpha blending is COLOR=SRC_ALPHA * SRC + (1 - SRC) * DEST, ALPHA=SRC_ALPHA + DEST_ALPHA |
618618
* | 6 | ALPHA_ONEONE | Defines that alpha blending is COLOR=SRC + DEST, ALPHA=DEST_ALPHA |

packages/dev/core/src/States/alphaCullingState.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@ export class AlphaState {
219219
break;
220220
case Constants.ALPHA_SUBTRACT:
221221
this.setAlphaBlendFunctionParameters(0, Constants.GL_ALPHA_FUNCTION_ONE_MINUS_SRC_COLOR, 1, 1, targetIndex);
222-
equation = Constants.GL_ALPHA_EQUATION_SUBTRACT;
223222
break;
224223
case Constants.ALPHA_MULTIPLY:
225224
this.setAlphaBlendFunctionParameters(Constants.GL_ALPHA_FUNCTION_DST_COLOR, 0, 1, 1, targetIndex);

0 commit comments

Comments
 (0)