Skip to content

Commit 2c2bfc3

Browse files
Codesplit WebGL/WebGPU entrypoints: Fix WebGPU Addons (#29644)
* Codesplit WebGL/WebGPU entrypoints: Fix WebGPU Addons * fix instance points example * feedbacks * update
1 parent 901c516 commit 2c2bfc3

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

examples/jsm/lines/webgpu/Line2.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
import { Line2NodeMaterial } from 'three/tsl';
2+
13
import { LineSegments2 } from './LineSegments2.js';
24
import { LineGeometry } from '../LineGeometry.js';
35

4-
import { Line2NodeMaterial } from 'three';
56

67
class Line2 extends LineSegments2 {
78

examples/jsm/lines/webgpu/LineSegments2.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ import {
99
Sphere,
1010
Vector3,
1111
Vector4,
12-
Line2NodeMaterial
1312
} from 'three';
13+
14+
import { Line2NodeMaterial } from 'three/tsl';
15+
1416
import { LineSegmentsGeometry } from '../../lines/LineSegmentsGeometry.js';
1517

1618
const _start = new Vector3();

examples/jsm/loaders/MaterialXLoader.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
import { FileLoader, Loader, TextureLoader, MeshBasicNodeMaterial, MeshPhysicalNodeMaterial, RepeatWrapping } from 'three';
1+
import { FileLoader, Loader, TextureLoader, RepeatWrapping } from 'three';
2+
3+
import { MeshBasicNodeMaterial, MeshPhysicalNodeMaterial } from 'three/tsl';
24

35
import {
46
float, bool, int, vec2, vec3, vec4, color, texture,
@@ -396,7 +398,7 @@ class MaterialXNode {
396398

397399
} else if ( this.hasReference ) {
398400

399-
if ( this.element === 'output' && this.output && out === null ) {
401+
if ( this.element === 'output' && this.output && out === null ) {
400402

401403
out = this.output;
402404

examples/jsm/objects/InstancedPoints.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import {
2-
Mesh,
3-
InstancedPointsNodeMaterial
4-
} from 'three';
1+
import { Mesh } from 'three';
2+
3+
import { InstancedPointsNodeMaterial } from 'three/tsl';
4+
55
import InstancedPointsGeometry from '../geometries/InstancedPointsGeometry.js';
66

77
class InstancedPoints extends Mesh {

0 commit comments

Comments
 (0)