Просмотр исходного кода

NodeBuilder: fix optional method arguments in TypeScript definitions

Signed-off-by: martinRenou <[email protected]>
martinRenou 5 лет назад
Родитель
Сommit
0e66654006
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      examples/jsm/nodes/core/NodeBuilder.d.ts

+ 4 - 4
examples/jsm/nodes/core/NodeBuilder.d.ts

@@ -96,19 +96,19 @@ export class NodeBuilder {
 	removeSlot(): this;
 	addVertexCode( code: string ): void;
 	addFragmentCode( code: string ): void;
-	addCode( code: string, shader: string ): void;
+	addCode( code: string, shader?: string ): void;
 	addVertexNodeCode( code: string ): void;
 	addFragmentNodeCode( code: string ): void;
-	addNodeCode( code: string, shader: string ): void;
+	addNodeCode( code: string, shader?: string ): void;
 	clearNodeCode( shader: string ): string;
 	clearVertexNodeCode(): string;
 	clearFragmentNodeCode(): string;
 	addVertexFinalCode( code: string ): void;
 	addFragmentFinalCode( code: string ): void;
-	addFinalCode( code: string, shader: string ): void;
+	addFinalCode( code: string, shader?: string ): void;
 	addVertexParsCode( code: string ): void;
 	addFragmentParsCode( code: string ): void;
-	addParsCode( code: string, shader: string ): void;
+	addParsCode( code: string, shader?: string ): void;
 	addVaryCode( code: string ): void;
 	isCache( name: string ): boolean;
 	isSlot( name: string ): boolean;