Jelajahi Sumber

NodeMaterial: Generalize the vertex/fragment types

Signed-off-by: martinRenou <[email protected]>
martinRenou 5 tahun lalu
induk
melakukan
c4f701d326
1 mengubah file dengan 4 tambahan dan 4 penghapusan
  1. 4 4
      examples/jsm/nodes/materials/NodeMaterial.d.ts

+ 4 - 4
examples/jsm/nodes/materials/NodeMaterial.d.ts

@@ -3,9 +3,9 @@ import {
 	WebGLRenderer
 } from '../../../../src/Three';
 
+import { Node } from '../../core/Node.js';
 import { NodeBuilder } from '../core/NodeBuilder';
 import { NodeFrame } from '../core/NodeFrame';
-import { MeshStandardNode } from './nodes/MeshStandardNode';
 import { RawNode } from './nodes/RawNode';
 
 export interface NodeMaterialBuildParams {
@@ -15,10 +15,10 @@ export interface NodeMaterialBuildParams {
 
 export class NodeMaterial extends ShaderMaterial {
 
-	constructor( vertex: MeshStandardNode, fragment: MeshStandardNode );
+	constructor( vertex: Node, fragment: Node );
 
-	vertex: MeshStandardNode | RawNode;
-	fragment: MeshStandardNode | RawNode;
+	vertex: Node | RawNode;
+	fragment: Node | RawNode;
 
 	updaters: object[];