Skip to content

Commit

Permalink
update import to three/tsl
Browse files Browse the repository at this point in the history
  • Loading branch information
sunag committed Jun 30, 2024
1 parent b48f814 commit 286bebf
Show file tree
Hide file tree
Showing 58 changed files with 58 additions and 58 deletions.
2 changes: 1 addition & 1 deletion examples/webgpu_backdrop.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<script type="module">

import * as THREE from 'three';
import { float, vec3, color, toneMapping, viewportSharedTexture, viewportTopLeft, checker, uv, timerLocal, oscSine, output } from 'three';
import { float, vec3, color, toneMapping, viewportSharedTexture, viewportTopLeft, checker, uv, timerLocal, oscSine, output } from 'three/tsl';

import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_backdrop_area.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<script type="module">

import * as THREE from 'three';
import { color, linearDepth, toneMapping, viewportLinearDepth, viewportSharedTexture, viewportMipTexture, viewportTopLeft, checker, uv, modelScale } from 'three';
import { color, linearDepth, toneMapping, viewportLinearDepth, viewportSharedTexture, viewportMipTexture, viewportTopLeft, checker, uv, modelScale } from 'three/tsl';

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

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_backdrop_water.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<script type="module">

import * as THREE from 'three';
import { color, vec2, pass, linearDepth, normalWorld, triplanarTexture, texture, objectPosition, viewportTopLeft, viewportLinearDepth, viewportDepthTexture, viewportSharedTexture, mx_worley_noise_float, positionWorld, timerLocal } from 'three';
import { color, vec2, pass, linearDepth, normalWorld, triplanarTexture, texture, objectPosition, viewportTopLeft, viewportLinearDepth, viewportDepthTexture, viewportSharedTexture, mx_worley_noise_float, positionWorld, timerLocal } from 'three/tsl';

import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_compute_audio.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<script type="module">

import * as THREE from 'three';
import { tslFn, uniform, storage, storageObject, instanceIndex, float, texture, viewportTopLeft, color } from 'three';
import { tslFn, uniform, storage, storageObject, instanceIndex, float, texture, viewportTopLeft, color } from 'three/tsl';

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

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_compute_geometry.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<script type="module">

import * as THREE from 'three';
import { vec3, cos, sin, mat3, storage, tslFn, instanceIndex, timerLocal } from 'three';
import { vec3, cos, sin, mat3, storage, tslFn, instanceIndex, timerLocal } from 'three/tsl';

import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_compute_particles.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<script type="module">

import * as THREE from 'three';
import { tslFn, uniform, texture, instanceIndex, float, vec3, storage, If } from 'three';
import { tslFn, uniform, texture, instanceIndex, float, vec3, storage, If } from 'three/tsl';

import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
import Stats from 'three/addons/libs/stats.module.js';
Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_compute_particles_rain.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<script type="module">

import * as THREE from 'three';
import { tslFn, texture, uv, uint, positionWorld, modelWorldMatrix, cameraViewMatrix, timerLocal, timerDelta, cameraProjectionMatrix, vec2, instanceIndex, positionGeometry, storage, If } from 'three';
import { tslFn, texture, uv, uint, positionWorld, modelWorldMatrix, cameraViewMatrix, timerLocal, timerDelta, cameraProjectionMatrix, vec2, instanceIndex, positionGeometry, storage, If } from 'three/tsl';

import { OrbitControls } from 'three/addons/controls/OrbitControls.js';

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_compute_particles_snow.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<script type="module">

import * as THREE from 'three';
import { tslFn, texture, vec3, pass, color, uint, viewportTopLeft, positionWorld, positionLocal, timerLocal, vec2, instanceIndex, storage, If } from 'three';
import { tslFn, texture, vec3, pass, color, uint, viewportTopLeft, positionWorld, positionLocal, timerLocal, vec2, instanceIndex, storage, If } from 'three/tsl';

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

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_compute_points.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<script type="module">

import * as THREE from 'three';
import { tslFn, uniform, storage, attribute, float, vec2, vec3, color, instanceIndex } from 'three';
import { tslFn, uniform, storage, attribute, float, vec2, vec3, color, instanceIndex } from 'three/tsl';

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

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_compute_texture.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<script type="module">

import * as THREE from 'three';
import { texture, textureStore, tslFn, instanceIndex, float, uvec2, vec4 } from 'three';
import { texture, textureStore, tslFn, instanceIndex, float, uvec2, vec4 } from 'three/tsl';

import WebGPU from 'three/addons/capabilities/WebGPU.js';

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_compute_texture_pingpong.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<script type="module">

import * as THREE from 'three';
import { storageTexture, wgslFn, code, instanceIndex, uniform } from 'three';
import { storageTexture, wgslFn, code, instanceIndex, uniform } from 'three/tsl';

import WebGPU from 'three/addons/capabilities/WebGPU.js';

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_cubemap_adjustments.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<script type="module">

import * as THREE from 'three';
import { uniform, mix, pmremTexture, reference, positionLocal, positionWorld, normalWorld, positionWorldDirection, reflectVector, toneMapping } from 'three';
import { uniform, mix, pmremTexture, reference, positionLocal, positionWorld, normalWorld, positionWorldDirection, reflectVector, toneMapping } from 'three/tsl';

import { RGBMLoader } from 'three/addons/loaders/RGBMLoader.js';

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_cubemap_mix.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<script type="module">

import * as THREE from 'three';
import { mix, oscSine, timerLocal, pmremTexture, float, toneMapping } from 'three';
import { mix, oscSine, timerLocal, pmremTexture, float, toneMapping } from 'three/tsl';

import { RGBMLoader } from 'three/addons/loaders/RGBMLoader.js';

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_custom_fog.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<script type="module">

import * as THREE from 'three';
import { color, fog, float, positionWorld, triNoise3D, positionView, normalWorld, uniform } from 'three';
import { color, fog, float, positionWorld, triNoise3D, positionView, normalWorld, uniform } from 'three/tsl';

import { OrbitControls } from 'three/addons/controls/OrbitControls.js';

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_custom_fog_background.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<script type="module">

import * as THREE from 'three';
import { pass, color, rangeFog } from 'three';
import { pass, color, rangeFog } from 'three/tsl';

import { RGBELoader } from 'three/addons/loaders/RGBELoader.js';

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_depth_texture.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<script type="module">

import * as THREE from 'three';
import { texture } from 'three';
import { texture } from 'three/tsl';

import { OrbitControls } from 'three/addons/controls/OrbitControls.js';

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_equirectangular.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<script type="module">

import * as THREE from 'three';
import { texture, equirectUV } from 'three';
import { texture, equirectUV } from 'three/tsl';

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

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_instance_mesh.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<script type="module">

import * as THREE from 'three';
import { mix, range, normalWorld, oscSine, timerLocal } from 'three';
import { mix, range, normalWorld, oscSine, timerLocal } from 'three/tsl';

import Stats from 'three/addons/libs/stats.module.js';

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_instance_points.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<script type="module">

import * as THREE from 'three';
import { color } from 'three';
import { color } from 'three/tsl';

import Stats from 'three/addons/libs/stats.module.js';

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_instance_uniform.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<script type="module">

import * as THREE from 'three';
import { nodeObject, uniform, cubeTexture } from 'three';
import { nodeObject, uniform, cubeTexture } from 'three/tsl';

import { OrbitControls } from 'three/addons/controls/OrbitControls.js';

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_lights_custom.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<script type="module">

import * as THREE from 'three';
import { color, lights } from 'three';
import { color, lights } from 'three/tsl';

import { OrbitControls } from 'three/addons/controls/OrbitControls.js';

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_lights_phong.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<script type="module">

import * as THREE from 'three';
import { color, rangeFog, checker, uv, mix, texture, lights, normalMap } from 'three';
import { color, rangeFog, checker, uv, mix, texture, lights, normalMap } from 'three/tsl';

import Stats from 'three/addons/libs/stats.module.js';

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_lights_selective.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<script type="module">

import * as THREE from 'three';
import { rangeFog, color, lights, texture, normalMap } from 'three';
import { rangeFog, color, lights, texture, normalMap } from 'three/tsl';

import Stats from 'three/addons/libs/stats.module.js';

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_lines_fat.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<script type="module">

import * as THREE from 'three';
import { color } from 'three';
import { color } from 'three/tsl';

import Stats from 'three/addons/libs/stats.module.js';

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_materials.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<script type="module">

import * as THREE from 'three';
import { tslFn, wgslFn, positionLocal, positionWorld, normalLocal, normalWorld, normalView, color, texture, uv, float, vec2, vec3, vec4, oscSine, triplanarTexture, viewportBottomLeft, js, string, global, loop } from 'three';
import { tslFn, wgslFn, positionLocal, positionWorld, normalLocal, normalWorld, normalView, color, texture, uv, float, vec2, vec3, vec4, oscSine, triplanarTexture, viewportBottomLeft, js, string, global, loop } from 'three/tsl';

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

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_materials_lightmap.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<script type="module">

import * as THREE from 'three';
import { vec4, color, positionLocal, mix } from 'three';
import { vec4, color, positionLocal, mix } from 'three/tsl';

import Stats from 'three/addons/libs/stats.module.js';

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_materialx_noise.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<script type="module">

import * as THREE from 'three';
import { normalWorld, timerLocal, mx_noise_vec3, mx_worley_noise_vec3, mx_cell_noise_float, mx_fractal_noise_vec3 } from 'three';
import { normalWorld, timerLocal, mx_noise_vec3, mx_worley_noise_vec3, mx_cell_noise_float, mx_fractal_noise_vec3 } from 'three/tsl';

import Stats from 'three/addons/libs/stats.module.js';

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_mirror.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<script type="module">

import * as THREE from 'three';
import { reflector, uv, texture, color } from 'three';
import { reflector, uv, texture, color } from 'three/tsl';

import { OrbitControls } from 'three/addons/controls/OrbitControls.js';

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_multiple_rendertargets.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<script type="module">

import * as THREE from 'three';
import { NodeMaterial, mix, modelNormalMatrix, normalGeometry, normalize, outputStruct, step, texture, uniform, uv, varying, vec2, vec4 } from 'three';
import { NodeMaterial, mix, modelNormalMatrix, normalGeometry, normalize, outputStruct, step, texture, uniform, uv, varying, vec2, vec4 } from 'three/tsl';

import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
//import { GUI } from 'three/addons/libs/lil-gui.module.min.js';
Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_multiple_rendertargets_readback.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<script type="module">

import * as THREE from 'three';
import { mix, modelNormalMatrix, normalGeometry, normalize, outputStruct, step, texture, uniform, uv, varying, vec2, vec4 } from 'three';
import { mix, modelNormalMatrix, normalGeometry, normalize, outputStruct, step, texture, uniform, uv, varying, vec2, vec4 } from 'three/tsl';

import { OrbitControls } from 'three/addons/controls/OrbitControls.js';

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_multisampled_renderbuffers.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<script type="module">

import * as THREE from 'three';
import { texture } from 'three';
import { texture } from 'three/tsl';

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

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_occlusion.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<script type="module">

import * as THREE from 'three';
import { nodeObject, uniform } from 'three';
import { nodeObject, uniform } from 'three/tsl';

import { OrbitControls } from 'three/addons/controls/OrbitControls.js';

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_parallax_uv.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<script type="module">

import * as THREE from 'three';
import { texture, parallaxUV, uv } from 'three';
import { texture, parallaxUV, uv } from 'three/tsl';

import { OrbitControls } from 'three/addons/controls/OrbitControls.js';

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_particles.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<script type="module">

import * as THREE from 'three';
import { range, texture, mix, uv, color, positionLocal, timerLocal } from 'three';
import { range, texture, mix, uv, color, positionLocal, timerLocal } from 'three/tsl';

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

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_pmrem_cubemap.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<script type="module">

import * as THREE from 'three';
import { normalWorld, uniform, normalView, positionViewDirection, cameraViewMatrix, pmremTexture } from 'three';
import { normalWorld, uniform, normalView, positionViewDirection, cameraViewMatrix, pmremTexture } from 'three/tsl';

import { RGBMLoader } from 'three/addons/loaders/RGBMLoader.js';

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_pmrem_equirectangular.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<script type="module">

import * as THREE from 'three';
import { normalWorld, uniform, normalView, positionViewDirection, cameraViewMatrix, pmremTexture } from 'three';
import { normalWorld, uniform, normalView, positionViewDirection, cameraViewMatrix, pmremTexture } from 'three/tsl';

import { RGBELoader } from 'three/addons/loaders/RGBELoader.js';

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_pmrem_scene.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<script type="module">

import * as THREE from 'three';
import { normalWorld, uniform, pmremTexture } from 'three';
import { normalWorld, uniform, pmremTexture } from 'three/tsl';

import { OrbitControls } from 'three/addons/controls/OrbitControls.js';

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_portal.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<script type="module">

import * as THREE from 'three';
import { pass, color, mx_worley_noise_float, timerLocal, viewportTopLeft, vec2, uv, normalWorld, mx_fractal_noise_vec3, toneMapping } from 'three';
import { pass, color, mx_worley_noise_float, timerLocal, viewportTopLeft, vec2, uv, normalWorld, mx_fractal_noise_vec3, toneMapping } from 'three/tsl';

import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_postprocessing.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<script type="module">

import * as THREE from 'three';
import { pass } from 'three';
import { pass } from 'three/tsl';

let camera, renderer, postProcessing;
let object;
Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_postprocessing_afterimage.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<script type="module">

import * as THREE from 'three';
import { pass } from 'three';
import { pass } from 'three/tsl';

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

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_postprocessing_anamorphic.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<script type="module">

import * as THREE from 'three';
import { pass, cubeTexture, viewportTopLeft, uniform } from 'three';
import { pass, cubeTexture, viewportTopLeft, uniform } from 'three/tsl';

import { RGBMLoader } from 'three/addons/loaders/RGBMLoader.js';

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_postprocessing_dof.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<script type="module">

import * as THREE from 'three';
import { cubeTexture, positionWorld, oscSine, timerGlobal, pass } from 'three';
import { cubeTexture, positionWorld, oscSine, timerGlobal, pass } from 'three/tsl';

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

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_postprocessing_sobel.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<script type="module">

import * as THREE from 'three';
import { pass } from 'three';
import { pass } from 'three/tsl';

import { OrbitControls } from 'three/addons/controls/OrbitControls.js';

Expand Down
2 changes: 1 addition & 1 deletion examples/webgpu_reflection.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<script type="module">

import * as THREE from 'three';
import { color, pass, reflector, normalWorld, texture, uv, viewportTopLeft } from 'three';
import { color, pass, reflector, normalWorld, texture, uv, viewportTopLeft } from 'three/tsl';

import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';

Expand Down
Loading

0 comments on commit 286bebf

Please sign in to comment.