Skip to content

Commit

Permalink
WebGPURenderer: NodeMaterial extends Material (#28313)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunag authored May 13, 2024
1 parent 6acee15 commit db0a63d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/jsm/nodes/materials/NodeMaterial.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Material, ShaderMaterial } from 'three';
import { Material } from 'three';
import { getNodeChildren, getCacheKey } from '../core/NodeUtils.js';
import { attribute } from '../core/AttributeNode.js';
import { output, diffuseColor, varyingProperty } from '../core/PropertyNode.js';
Expand Down Expand Up @@ -27,7 +27,7 @@ import { faceDirection } from '../display/FrontFacingNode.js';

const NodeMaterials = new Map();

class NodeMaterial extends ShaderMaterial {
class NodeMaterial extends Material {

constructor() {

Expand Down Expand Up @@ -458,8 +458,6 @@ class NodeMaterial extends ShaderMaterial {

}

Object.assign( this.defines, material.defines );

const descriptors = Object.getOwnPropertyDescriptors( material.constructor.prototype );

for ( const key in descriptors ) {
Expand Down

0 comments on commit db0a63d

Please sign in to comment.