Browse Source

Examples: Rename *NodeMaterial to THREE.*NodeMaterial (#28769)

sunag 1 year ago
parent
commit
9d5853b585
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/webgpu_refraction.html

+ 2 - 2
examples/webgpu_refraction.html

@@ -25,7 +25,7 @@
 		<script type="module">
 
 			import * as THREE from 'three';
-			import { MeshBasicNodeMaterial, viewportSharedTexture, texture, uv } from 'three/tsl';
+			import { viewportSharedTexture, texture, uv } from 'three/tsl';
 
 			import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
 
@@ -71,7 +71,7 @@
 
 				const planeGeo = new THREE.PlaneGeometry( 100.1, 100.1 );
 
-				const planeRefractor = new THREE.Mesh( planeGeo, new MeshBasicNodeMaterial( {
+				const planeRefractor = new THREE.Mesh( planeGeo, new THREE.MeshBasicNodeMaterial( {
 					backdropNode: verticalRefractor
 				} ) );
 				planeRefractor.material.transparent = true;