Skip to content

Commit

Permalink
Material: Add "material.alphaHash" transparency mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 committed Jul 1, 2023
1 parent 15e0d2d commit 7fd7d10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions types/three/src/materials/Material.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
} from '../constants';

export interface MaterialParameters {
alphaHash?: boolean | undefined;
alphaTest?: number | undefined;
alphaToCoverage?: boolean | undefined;
blendDst?: BlendingDstFactor | undefined;
Expand Down Expand Up @@ -65,6 +66,8 @@ export interface MaterialParameters {
export class Material extends EventDispatcher {
constructor();

alphaHash: boolean;

/**
* Sets the alpha value to be used when running an alpha test. Default is 0.
* @default 0
Expand Down
2 changes: 2 additions & 0 deletions types/three/src/renderers/shaders/ShaderChunk.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Renderers / Shaders /////////////////////////////////////////////////////////////////////
export const ShaderChunk: {
alphahash_fragment: string;
alphahash_pars_fragment: string;
alphamap_fragment: string;
alphamap_pars_fragment: string;
alphatest_fragment: string;
Expand Down

0 comments on commit 7fd7d10

Please sign in to comment.