Skip to content

Commit

Permalink
WebGLRenderer: option to enable multi_draw / gl_DrawID in vertex shad…
Browse files Browse the repository at this point in the history
…er (#792)
  • Loading branch information
Methuselah96 authored Jan 29, 2024
1 parent 8ffc1d5 commit 2b7ab09
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion types/three/src/materials/ShaderMaterial.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,22 @@ export class ShaderMaterial extends Material {
derivatives: any;

/**
* @default { derivatives: false, fragDepth: false, drawBuffers: false, shaderTextureLOD: false, clipCullDistance: false }
* @default {
* derivatives: false,
* fragDepth: false,
* drawBuffers: false,
* shaderTextureLOD: false,
* clipCullDistance: false,
* multiDraw: false
* }
*/
extensions: {
derivatives: boolean;
fragDepth: boolean;
drawBuffers: boolean;
shaderTextureLOD: boolean;
clipCullDistance: boolean;
multiDraw: boolean;
};

/**
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 @@ -204,6 +204,7 @@ export interface WebGLProgramParameters {
extensionDrawBuffers: boolean;
extensionShaderTextureLOD: boolean;
extensionClipCullDistance: boolean;
extensionMultiDraw: boolean;

rendererExtensionFragDepth: boolean;
rendererExtensionDrawBuffers: boolean;
Expand Down

0 comments on commit 2b7ab09

Please sign in to comment.