Skip to content

Commit eccd730

Browse files
committed
feat: add TwoPassDoubleSide
See: mrdoob/three.js#25165 also add doc comment of Side
1 parent e4c3ebe commit eccd730

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

types/three/src/constants.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,17 @@ export const VSMShadowMap: ShadowMapType;
3434
// MATERIAL CONSTANTS
3535

3636
// side
37+
/**
38+
* Defines which side of faces will be rendered - front, back or both.
39+
* Default is FrontSide.
40+
*
41+
* TwoPassDoubleSide will renderer double-sided transparent materials in two passes in back-front order to mitigate transparency artifacts.
42+
*/
3743
export enum Side {}
3844
export const FrontSide: Side;
3945
export const BackSide: Side;
4046
export const DoubleSide: Side;
47+
export const TwoPassDoubleSide: Side;
4148

4249
// blending modes
4350
export enum Blending {}

0 commit comments

Comments
 (0)