Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Material: Add alpha to coverage define #775

Merged
merged 1 commit into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion types/three/src/materials/Material.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ export class Material extends EventDispatcher<{ dispose: {} }> {
alphaTest: number;

/**
* Enables alpha to coverage. Can only be used with MSAA-enabled rendering contexts.
* Enables alpha to coverage. Can only be used with MSAA-enabled rendering contexts (meaning when the renderer was
* created with *antialias* parameter set to `true`). Enabling this will smooth aliasing on clip plane edges and
* alphaTest-clipped edges.
* @default false
*/
alphaToCoverage: boolean;
Expand Down
1 change: 0 additions & 1 deletion types/three/src/renderers/webgl/WebGLProgram.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { WebGLRenderer } from '../WebGLRenderer.js';
import { WebGLShader } from './WebGLShader.js';
import { WebGLUniforms } from './WebGLUniforms.js';

export class WebGLProgram {
Expand Down
1 change: 1 addition & 0 deletions types/three/src/renderers/webgl/WebGLPrograms.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export interface WebGLProgramParameters {

supportsVertexTextures: boolean;
outputColorSpace: ColorSpace;
alphaToCoverage: boolean;

map: boolean;
matcap: boolean;
Expand Down