Skip to content

Commit 88349e3

Browse files
authored
Examples: Fix node imports (#29556)
1 parent e395c1a commit 88349e3

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

examples/webgpu_compute_particles_snow.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
<script type="module">
2626

2727
import * as THREE from 'three';
28-
import { Fn, texture, vec3, pass, color, uint, screenUV, positionWorld, positionLocal, timerLocal, vec2, hash, gaussianBlur, instanceIndex, storage, If } from 'three/tsl';
28+
import { Fn, texture, vec3, pass, color, uint, screenUV, positionWorld, positionLocal, timerLocal, vec2, hash, instanceIndex, storage, If } from 'three/tsl';
29+
import { gaussianBlur } from 'three/addons/tsl/display/GaussianBlurNode.js';
2930

3031
import { TeapotGeometry } from 'three/addons/geometries/TeapotGeometry.js';
3132

examples/webgpu_tsl_vfx_linkedparticles.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
<script type="module">
2828

2929
import * as THREE from 'three';
30-
import { atan2, cos, float, max, min, mix, PI, PI2, sin, vec2, vec3, bloom, color, Fn, hash, hue, If, instanceIndex, Loop, mx_fractal_noise_float, mx_fractal_noise_vec3, pass, pcurve, storage, timerDelta, timerGlobal, uv, uniform } from 'three/tsl';
30+
import { atan2, cos, float, max, min, mix, PI, PI2, sin, vec2, vec3, color, Fn, hash, hue, If, instanceIndex, Loop, mx_fractal_noise_float, mx_fractal_noise_vec3, pass, pcurve, storage, timerDelta, timerGlobal, uv, uniform } from 'three/tsl';
31+
import { bloom } from 'three/addons/tsl/display/BloomNode.js';
3132

3233
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
3334
import { GUI } from 'three/addons/libs/lil-gui.module.min.js';

examples/webgpu_tsl_vfx_tornado.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
<script type="module">
2828

2929
import * as THREE from 'three';
30-
import { luminance, cos, float, min, timerLocal, atan2, uniform, pass, bloom, PI, PI2, color, positionLocal, oneMinus, sin, texture, Fn, uv, vec2, vec3, vec4 } from 'three/tsl';
30+
import { luminance, cos, float, min, timerLocal, atan2, uniform, pass, PI, PI2, color, positionLocal, oneMinus, sin, texture, Fn, uv, vec2, vec3, vec4 } from 'three/tsl';
31+
import { bloom } from 'three/addons/tsl/display/BloomNode.js';
3132

3233
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
3334
import { GUI } from 'three/addons/libs/lil-gui.module.min.js';

0 commit comments

Comments
 (0)