|
|
@@ -1,4 +1,6 @@
|
|
|
-import { FileLoader, Loader, TextureLoader, MeshBasicNodeMaterial, MeshPhysicalNodeMaterial, RepeatWrapping } from 'three';
|
|
|
+import { FileLoader, Loader, TextureLoader, RepeatWrapping } from 'three';
|
|
|
+
|
|
|
+import { MeshBasicNodeMaterial, MeshPhysicalNodeMaterial } from 'three/tsl';
|
|
|
|
|
|
import {
|
|
|
float, bool, int, vec2, vec3, vec4, color, texture,
|
|
|
@@ -396,7 +398,7 @@ class MaterialXNode {
|
|
|
|
|
|
} else if ( this.hasReference ) {
|
|
|
|
|
|
- if ( this.element === 'output' && this.output && out === null ) {
|
|
|
+ if ( this.element === 'output' && this.output && out === null ) {
|
|
|
|
|
|
out = this.output;
|
|
|
|