Преглед на файлове

Builds: Introduce `three.tsl.js` (#29948)

* build: introduce `three.tsl.js`

* Update package.json

* Update rollup.config.js

* update misc_controls_fly and depedencies

* added TSL arrays
sunag преди 1 година
родител
ревизия
84ab41c198
променени са 100 файла, в които са добавени 215 реда и са изтрити 140 реда
  1. 5 3
      examples/jsm/csm/CSMShadowNode.js
  2. 1 1
      examples/jsm/lighting/TiledLighting.js
  3. 1 1
      examples/jsm/lines/webgpu/Line2.js
  4. 2 3
      examples/jsm/lines/webgpu/LineSegments2.js
  5. 2 1
      examples/jsm/lines/webgpu/Wireframe.js
  6. 1 3
      examples/jsm/loaders/MaterialXLoader.js
  7. 2 2
      examples/jsm/misc/ProgressiveLightMapGPU.js
  8. 1 3
      examples/jsm/objects/InstancedPoints.js
  9. 4 2
      examples/jsm/objects/LensflareMesh.js
  10. 5 3
      examples/jsm/objects/SkyMesh.js
  11. 7 3
      examples/jsm/objects/Water2Mesh.js
  12. 5 3
      examples/jsm/objects/WaterMesh.js
  13. 4 3
      examples/jsm/transpiler/TSLEncoder.js
  14. 2 2
      examples/jsm/tsl/display/AfterImageNode.js
  15. 2 2
      examples/jsm/tsl/display/AnaglyphPassNode.js
  16. 2 2
      examples/jsm/tsl/display/AnamorphicNode.js
  17. 2 2
      examples/jsm/tsl/display/BloomNode.js
  18. 2 2
      examples/jsm/tsl/display/DenoiseNode.js
  19. 2 1
      examples/jsm/tsl/display/DepthOfFieldNode.js
  20. 2 2
      examples/jsm/tsl/display/DotScreenNode.js
  21. 2 2
      examples/jsm/tsl/display/FXAANode.js
  22. 2 1
      examples/jsm/tsl/display/FilmNode.js
  23. 2 2
      examples/jsm/tsl/display/GTAONode.js
  24. 2 2
      examples/jsm/tsl/display/GaussianBlurNode.js
  25. 2 2
      examples/jsm/tsl/display/LensflareNode.js
  26. 2 1
      examples/jsm/tsl/display/Lut3DNode.js
  27. 2 2
      examples/jsm/tsl/display/OutlineNode.js
  28. 2 1
      examples/jsm/tsl/display/ParallaxBarrierPassNode.js
  29. 2 2
      examples/jsm/tsl/display/PixelationPassNode.js
  30. 2 1
      examples/jsm/tsl/display/RGBShiftNode.js
  31. 2 2
      examples/jsm/tsl/display/SMAANode.js
  32. 2 2
      examples/jsm/tsl/display/SSAAPassNode.js
  33. 2 2
      examples/jsm/tsl/display/SSRNode.js
  34. 2 2
      examples/jsm/tsl/display/SobelOperatorNode.js
  35. 2 2
      examples/jsm/tsl/display/StereoCompositePassNode.js
  36. 2 2
      examples/jsm/tsl/display/StereoPassNode.js
  37. 2 2
      examples/jsm/tsl/display/TRAAPassNode.js
  38. 2 1
      examples/jsm/tsl/display/TransitionNode.js
  39. 3 4
      examples/jsm/tsl/lighting/TiledLightsNode.js
  40. 3 2
      examples/misc_controls_fly.html
  41. 2 1
      examples/webgpu_animation_retargeting.html
  42. 2 1
      examples/webgpu_animation_retargeting_readyplayer.html
  43. 2 1
      examples/webgpu_backdrop.html
  44. 2 1
      examples/webgpu_backdrop_area.html
  45. 2 1
      examples/webgpu_backdrop_water.html
  46. 2 1
      examples/webgpu_camera_logarithmicdepthbuffer.html
  47. 2 1
      examples/webgpu_clearcoat.html
  48. 2 1
      examples/webgpu_clipping.html
  49. 2 1
      examples/webgpu_compute_audio.html
  50. 2 1
      examples/webgpu_compute_birds.html
  51. 2 1
      examples/webgpu_compute_geometry.html
  52. 2 1
      examples/webgpu_compute_particles.html
  53. 2 1
      examples/webgpu_compute_particles_rain.html
  54. 2 1
      examples/webgpu_compute_particles_snow.html
  55. 2 1
      examples/webgpu_compute_points.html
  56. 2 1
      examples/webgpu_compute_sort_bitonic.html
  57. 2 1
      examples/webgpu_compute_texture.html
  58. 2 1
      examples/webgpu_compute_texture_pingpong.html
  59. 2 1
      examples/webgpu_compute_water.html
  60. 2 1
      examples/webgpu_cubemap_adjustments.html
  61. 2 1
      examples/webgpu_cubemap_dynamic.html
  62. 2 1
      examples/webgpu_cubemap_mix.html
  63. 2 1
      examples/webgpu_custom_fog.html
  64. 2 1
      examples/webgpu_custom_fog_background.html
  65. 2 1
      examples/webgpu_depth_texture.html
  66. 2 1
      examples/webgpu_display_stereo.html
  67. 2 1
      examples/webgpu_equirectangular.html
  68. 2 1
      examples/webgpu_instance_mesh.html
  69. 2 1
      examples/webgpu_instance_points.html
  70. 2 1
      examples/webgpu_instance_sprites.html
  71. 2 1
      examples/webgpu_instance_uniform.html
  72. 2 1
      examples/webgpu_instancing_morph.html
  73. 2 1
      examples/webgpu_lensflares.html
  74. 2 1
      examples/webgpu_lightprobe.html
  75. 2 1
      examples/webgpu_lightprobe_cubecamera.html
  76. 2 1
      examples/webgpu_lights_custom.html
  77. 2 1
      examples/webgpu_lights_ies_spotlight.html
  78. 2 1
      examples/webgpu_lights_phong.html
  79. 1 0
      examples/webgpu_lights_physical.html
  80. 2 1
      examples/webgpu_lights_rectarealight.html
  81. 2 1
      examples/webgpu_lights_selective.html
  82. 2 1
      examples/webgpu_lights_tiled.html
  83. 2 1
      examples/webgpu_lines_fat.html
  84. 2 1
      examples/webgpu_lines_fat_wireframe.html
  85. 2 1
      examples/webgpu_loader_gltf.html
  86. 2 1
      examples/webgpu_loader_gltf_anisotropy.html
  87. 2 1
      examples/webgpu_loader_gltf_compressed.html
  88. 2 1
      examples/webgpu_loader_gltf_dispersion.html
  89. 2 1
      examples/webgpu_loader_gltf_iridescence.html
  90. 2 1
      examples/webgpu_loader_gltf_sheen.html
  91. 2 1
      examples/webgpu_loader_gltf_transmission.html
  92. 2 1
      examples/webgpu_loader_materialx.html
  93. 2 1
      examples/webgpu_materials.html
  94. 2 1
      examples/webgpu_materials_alphahash.html
  95. 2 1
      examples/webgpu_materials_arrays.html
  96. 2 1
      examples/webgpu_materials_basic.html
  97. 2 1
      examples/webgpu_materials_displacementmap.html
  98. 2 1
      examples/webgpu_materials_envmaps.html
  99. 2 1
      examples/webgpu_materials_envmaps_bpcem.html
  100. 2 1
      examples/webgpu_materials_lightmap.html

+ 5 - 3
examples/jsm/csm/CSMShadowNode.js

@@ -5,11 +5,13 @@ import {
 	Matrix4,
 	Box3,
 	Object3D,
-	WebGLCoordinateSystem
-} from 'three';
+	WebGLCoordinateSystem,
+	NodeUpdateType,
+	Node
+} from 'three/webgpu';
 
 import { CSMFrustum } from './CSMFrustum.js';
-import { viewZToOrthographicDepth, reference, uniform, float, vec4, vec2, If, Fn, min, renderGroup, positionView, Node, NodeUpdateType, shadow } from 'three/tsl';
+import { viewZToOrthographicDepth, reference, uniform, float, vec4, vec2, If, Fn, min, renderGroup, positionView, shadow } from 'three/tsl';
 
 const _cameraToLightMatrix = new Matrix4();
 const _lightSpaceFrustum = new CSMFrustum();

+ 1 - 1
examples/jsm/lighting/TiledLighting.js

@@ -1,4 +1,4 @@
-import { Lighting } from 'three/tsl';
+import { Lighting } from 'three/webgpu';
 import { tiledLights } from '../tsl/lighting/TiledLightsNode.js';
 
 export class TiledLighting extends Lighting {

+ 1 - 1
examples/jsm/lines/webgpu/Line2.js

@@ -1,4 +1,4 @@
-import { Line2NodeMaterial } from 'three/tsl';
+import { Line2NodeMaterial } from 'three/webgpu';
 
 import { LineSegments2 } from './LineSegments2.js';
 import { LineGeometry } from '../LineGeometry.js';

+ 2 - 3
examples/jsm/lines/webgpu/LineSegments2.js

@@ -9,9 +9,8 @@ import {
 	Sphere,
 	Vector3,
 	Vector4,
-} from 'three';
-
-import { Line2NodeMaterial } from 'three/tsl';
+	Line2NodeMaterial
+} from 'three/webgpu';
 
 import { LineSegmentsGeometry } from '../../lines/LineSegmentsGeometry.js';
 

+ 2 - 1
examples/jsm/lines/webgpu/Wireframe.js

@@ -4,7 +4,8 @@ import {
 	Line2NodeMaterial,
 	Mesh,
 	Vector3
-} from 'three';
+} from 'three/webgpu';
+
 import { LineSegmentsGeometry } from '../../lines/LineSegmentsGeometry.js';
 
 const _start = new Vector3();

+ 1 - 3
examples/jsm/loaders/MaterialXLoader.js

@@ -1,6 +1,4 @@
-import { FileLoader, Loader, TextureLoader, RepeatWrapping } from 'three';
-
-import { MeshBasicNodeMaterial, MeshPhysicalNodeMaterial } from 'three/tsl';
+import { FileLoader, Loader, TextureLoader, RepeatWrapping, MeshBasicNodeMaterial, MeshPhysicalNodeMaterial } from 'three/webgpu';
 
 import {
 	float, bool, int, vec2, vec3, vec4, color, texture,

+ 2 - 2
examples/jsm/misc/ProgressiveLightMapGPU.js

@@ -1,5 +1,5 @@
-import { DoubleSide, FloatType, HalfFloatType, PlaneGeometry, Mesh, RenderTarget, Scene } from 'three';
-import { add, float, mix, MeshPhongNodeMaterial, NodeMaterial, output, sub, texture, uniform, uv, vec2, vec4 } from 'three/tsl';
+import { DoubleSide, FloatType, HalfFloatType, PlaneGeometry, Mesh, RenderTarget, Scene, MeshPhongNodeMaterial, NodeMaterial } from 'three/webgpu';
+import { add, float, mix, output, sub, texture, uniform, uv, vec2, vec4 } from 'three/tsl';
 
 import { potpack } from '../libs/potpack.module.js';
 

+ 1 - 3
examples/jsm/objects/InstancedPoints.js

@@ -1,6 +1,4 @@
-import { Mesh } from 'three';
-
-import { InstancedPointsNodeMaterial } from 'three/tsl';
+import { Mesh, InstancedPointsNodeMaterial } from 'three/webgpu';
 
 import InstancedPointsGeometry from '../geometries/InstancedPointsGeometry.js';
 

+ 4 - 2
examples/jsm/objects/LensflareMesh.js

@@ -12,9 +12,11 @@ import {
 	UnsignedByteType,
 	Vector2,
 	Vector3,
-	Vector4 } from 'three';
+	Vector4,
+	Node
+} from 'three/webgpu';
 
-import { texture, textureLoad, uv, ivec2, vec2, vec4, positionGeometry, reference, varyingProperty, materialReference, Fn, Node } from 'three/tsl';
+import { texture, textureLoad, uv, ivec2, vec2, vec4, positionGeometry, reference, varyingProperty, materialReference, Fn } from 'three/tsl';
 
 class LensflareMesh extends Mesh {
 

+ 5 - 3
examples/jsm/objects/SkyMesh.js

@@ -2,9 +2,11 @@ import {
 	BackSide,
 	BoxGeometry,
 	Mesh,
-	Vector3
-} from 'three';
-import { Fn, NodeMaterial, float, vec3, acos, add, mul, clamp, cos, dot, exp, max, mix, modelViewProjection, normalize, positionWorld, pow, smoothstep, sub, varying, varyingProperty, vec4, uniform, cameraPosition } from 'three/tsl';
+	Vector3,
+	NodeMaterial
+} from 'three/webgpu';
+
+import { Fn, float, vec3, acos, add, mul, clamp, cos, dot, exp, max, mix, modelViewProjection, normalize, positionWorld, pow, smoothstep, sub, varying, varyingProperty, vec4, uniform, cameraPosition } from 'three/tsl';
 
 /**
  * Based on "A Practical Analytic Model for Daylight"

+ 7 - 3
examples/jsm/objects/Water2Mesh.js

@@ -2,9 +2,13 @@ import {
 	Color,
 	Mesh,
 	Vector2,
-	Vector3
-} from 'three';
-import { Fn, NodeMaterial, NodeUpdateType, TempNode, vec2, viewportSafeUV, viewportSharedTexture, reflector, pow, float, abs, texture, uniform, vec4, cameraPosition, positionWorld, uv, mix, vec3, normalize, max, dot, screenUV } from 'three/tsl';
+	Vector3,
+	NodeMaterial,
+	NodeUpdateType,
+	TempNode
+} from 'three/webgpu';
+
+import { Fn, vec2, viewportSafeUV, viewportSharedTexture, reflector, pow, float, abs, texture, uniform, vec4, cameraPosition, positionWorld, uv, mix, vec3, normalize, max, dot, screenUV } from 'three/tsl';
 
 /**
  * References:

+ 5 - 3
examples/jsm/objects/WaterMesh.js

@@ -1,9 +1,11 @@
 import {
 	Color,
 	Mesh,
-	Vector3
-} from 'three';
-import { Fn, NodeMaterial, add, cameraPosition, div, normalize, positionWorld, sub, time, texture, vec2, vec3, vec4, max, dot, reflect, pow, length, float, uniform, reflector, mul, mix } from 'three/tsl';
+	Vector3,
+	NodeMaterial
+} from 'three/webgpu';
+
+import { Fn, add, cameraPosition, div, normalize, positionWorld, sub, time, texture, vec2, vec3, vec4, max, dot, reflect, pow, length, float, uniform, reflector, mul, mix } from 'three/tsl';
 
 /**
  * Work based on :

+ 4 - 3
examples/jsm/transpiler/TSLEncoder.js

@@ -1,4 +1,5 @@
-import * as THREE from 'three';
+import { REVISION } from 'three/webgpu';
+import * as TSL from 'three/tsl';
 
 import { VariableDeclaration, Accessor } from './AST.js';
 
@@ -68,7 +69,7 @@ class TSLEncoder {
 
 		name = name.split( '.' )[ 0 ];
 
-		if ( THREE[ name ] !== undefined && this.global.has( name ) === false && this._currentProperties[ name ] === undefined ) {
+		if ( TSL[ name ] !== undefined && this.global.has( name ) === false && this._currentProperties[ name ] === undefined ) {
 
 			this.imports.add( name );
 
@@ -690,7 +691,7 @@ ${ this.tab }} )`;
 		const imports = [ ...this.imports ];
 		const exports = [ ...this.global ];
 
-		let header = '// Three.js Transpiler r' + THREE.REVISION + '\n\n';
+		let header = '// Three.js Transpiler r' + REVISION + '\n\n';
 		let footer = '';
 
 		if ( this.iife ) {

+ 2 - 2
examples/jsm/tsl/display/AfterImageNode.js

@@ -1,5 +1,5 @@
-import { RenderTarget, Vector2 } from 'three';
-import { TempNode, nodeObject, Fn, float, vec4, NodeUpdateType, uv, texture, passTexture, uniform, sign, max, convertToTexture, QuadMesh, NodeMaterial, PostProcessingUtils } from 'three/tsl';
+import { RenderTarget, Vector2, QuadMesh, NodeMaterial, PostProcessingUtils, TempNode, NodeUpdateType } from 'three/webgpu';
+import { nodeObject, Fn, float, vec4, uv, texture, passTexture, uniform, sign, max, convertToTexture } from 'three/tsl';
 
 const _size = /*@__PURE__*/ new Vector2();
 const _quadMeshComp = /*@__PURE__*/ new QuadMesh();

+ 2 - 2
examples/jsm/tsl/display/AnaglyphPassNode.js

@@ -1,5 +1,5 @@
-import { Matrix3 } from 'three';
-import { clamp, nodeObject, Fn, vec4, uv, uniform, max, NodeMaterial } from 'three/tsl';
+import { Matrix3, NodeMaterial } from 'three/webgpu';
+import { clamp, nodeObject, Fn, vec4, uv, uniform, max } from 'three/tsl';
 import StereoCompositePassNode from './StereoCompositePassNode.js';
 
 class AnaglyphPassNode extends StereoCompositePassNode {

+ 2 - 2
examples/jsm/tsl/display/AnamorphicNode.js

@@ -1,5 +1,5 @@
-import { RenderTarget, Vector2 } from 'three';
-import { TempNode, nodeObject, Fn, float, NodeUpdateType, uv, passTexture, uniform, convertToTexture, QuadMesh, NodeMaterial, vec2, vec3, Loop, threshold, PostProcessingUtils } from 'three/tsl';
+import { RenderTarget, Vector2, TempNode, QuadMesh, NodeMaterial, PostProcessingUtils } from 'three/webgpu';
+import { nodeObject, Fn, float, NodeUpdateType, uv, passTexture, uniform, convertToTexture, vec2, vec3, Loop, threshold } from 'three/tsl';
 
 const _quadMesh = /*@__PURE__*/ new QuadMesh();
 

+ 2 - 2
examples/jsm/tsl/display/BloomNode.js

@@ -1,5 +1,5 @@
-import { HalfFloatType, RenderTarget, Vector2, Vector3 } from 'three';
-import { TempNode, nodeObject, Fn, float, NodeUpdateType, uv, passTexture, uniform, QuadMesh, NodeMaterial, Loop, texture, luminance, smoothstep, mix, vec4, uniformArray, add, int, PostProcessingUtils } from 'three/tsl';
+import { HalfFloatType, RenderTarget, Vector2, Vector3, TempNode, QuadMesh, NodeMaterial, PostProcessingUtils, NodeUpdateType } from 'three/webgpu';
+import { nodeObject, Fn, float, uv, passTexture, uniform, Loop, texture, luminance, smoothstep, mix, vec4, uniformArray, add, int } from 'three/tsl';
 
 const _quadMesh = /*@__PURE__*/ new QuadMesh();
 const _size = /*@__PURE__*/ new Vector2();

+ 2 - 2
examples/jsm/tsl/display/DenoiseNode.js

@@ -1,5 +1,5 @@
-import { DataTexture, RepeatWrapping, Vector2, Vector3 } from 'three';
-import { texture, getNormalFromDepth, getViewPosition, convertToTexture, TempNode, nodeObject, Fn, float, NodeUpdateType, uv, uniform, Loop, luminance, vec2, vec3, vec4, uniformArray, int, dot, max, pow, abs, If, textureSize, sin, cos, mat2, PI } from 'three/tsl';
+import { DataTexture, RepeatWrapping, Vector2, Vector3, TempNode } from 'three/webgpu';
+import { texture, getNormalFromDepth, getViewPosition, convertToTexture, nodeObject, Fn, float, NodeUpdateType, uv, uniform, Loop, luminance, vec2, vec3, vec4, uniformArray, int, dot, max, pow, abs, If, textureSize, sin, cos, mat2, PI } from 'three/tsl';
 import { SimplexNoise } from '../../math/SimplexNoise.js';
 
 class DenoiseNode extends TempNode {

+ 2 - 1
examples/jsm/tsl/display/DepthOfFieldNode.js

@@ -1,4 +1,5 @@
-import { convertToTexture, TempNode, nodeObject, Fn, NodeUpdateType, uv, uniform, vec2, vec4, clamp } from 'three/tsl';
+import { TempNode, NodeUpdateType } from 'three/webgpu';
+import { convertToTexture, nodeObject, Fn, uv, uniform, vec2, vec4, clamp } from 'three/tsl';
 
 class DepthOfFieldNode extends TempNode {
 

+ 2 - 2
examples/jsm/tsl/display/DotScreenNode.js

@@ -1,5 +1,5 @@
-import { Vector2 } from 'three';
-import { TempNode, nodeObject, Fn, uv, uniform, vec2, vec3, sin, cos, add, vec4, screenSize } from 'three/tsl';
+import { Vector2, TempNode } from 'three/webgpu';
+import { nodeObject, Fn, uv, uniform, vec2, vec3, sin, cos, add, vec4, screenSize } from 'three/tsl';
 
 class DotScreenNode extends TempNode {
 

+ 2 - 2
examples/jsm/tsl/display/FXAANode.js

@@ -1,5 +1,5 @@
-import { Vector2 } from 'three';
-import { TempNode, nodeObject, Fn, uniformArray, select, float, NodeUpdateType, uv, dot, clamp, uniform, convertToTexture, smoothstep, bool, vec2, vec3, If, Loop, max, min, Break, abs } from 'three/tsl';
+import { Vector2, TempNode } from 'three/webgpu';
+import { nodeObject, Fn, uniformArray, select, float, NodeUpdateType, uv, dot, clamp, uniform, convertToTexture, smoothstep, bool, vec2, vec3, If, Loop, max, min, Break, abs } from 'three/tsl';
 
 class FXAANode extends TempNode {
 

+ 2 - 1
examples/jsm/tsl/display/FilmNode.js

@@ -1,4 +1,5 @@
-import { TempNode, rand, Fn, fract, time, uv, clamp, mix, vec4, nodeProxy } from 'three/tsl';
+import { TempNode } from 'three/webgpu';
+import { rand, Fn, fract, time, uv, clamp, mix, vec4, nodeProxy } from 'three/tsl';
 
 class FilmNode extends TempNode {
 

+ 2 - 2
examples/jsm/tsl/display/GTAONode.js

@@ -1,5 +1,5 @@
-import { DataTexture, RenderTarget, RepeatWrapping, Vector2, Vector3 } from 'three';
-import { reference, logarithmicDepthToViewZ, viewZToPerspectiveDepth, getNormalFromDepth, getScreenPosition, getViewPosition, QuadMesh, TempNode, nodeObject, Fn, float, NodeUpdateType, uv, uniform, Loop, vec2, vec3, vec4, int, dot, max, pow, abs, If, textureSize, sin, cos, PI, texture, passTexture, mat3, add, normalize, mul, cross, div, mix, sqrt, sub, acos, clamp, NodeMaterial, PostProcessingUtils } from 'three/tsl';
+import { DataTexture, RenderTarget, RepeatWrapping, Vector2, Vector3, TempNode, QuadMesh, NodeMaterial, PostProcessingUtils } from 'three/webgpu';
+import { reference, logarithmicDepthToViewZ, viewZToPerspectiveDepth, getNormalFromDepth, getScreenPosition, getViewPosition, nodeObject, Fn, float, NodeUpdateType, uv, uniform, Loop, vec2, vec3, vec4, int, dot, max, pow, abs, If, textureSize, sin, cos, PI, texture, passTexture, mat3, add, normalize, mul, cross, div, mix, sqrt, sub, acos, clamp } from 'three/tsl';
 
 const _quadMesh = /*@__PURE__*/ new QuadMesh();
 const _size = /*@__PURE__*/ new Vector2();

+ 2 - 2
examples/jsm/tsl/display/GaussianBlurNode.js

@@ -1,5 +1,5 @@
-import { RenderTarget, Vector2 } from 'three';
-import { TempNode, nodeObject, Fn, If, float, NodeUpdateType, uv, uniform, convertToTexture, vec2, vec4, QuadMesh, passTexture, mul, NodeMaterial, PostProcessingUtils } from 'three/tsl';
+import { RenderTarget, Vector2, NodeMaterial, PostProcessingUtils, QuadMesh, TempNode, NodeUpdateType } from 'three/webgpu';
+import { nodeObject, Fn, If, float, uv, uniform, convertToTexture, vec2, vec4, passTexture, mul } from 'three/tsl';
 
 // WebGPU: The use of a single QuadMesh for both gaussian blur passes results in a single RenderObject with a SampledTexture binding that
 // alternates between source textures and triggers creation of new BindGroups and BindGroupLayouts every frame.

+ 2 - 2
examples/jsm/tsl/display/LensflareNode.js

@@ -1,5 +1,5 @@
-import { RenderTarget, Vector2 } from 'three';
-import { convertToTexture, TempNode, nodeObject, Fn, NodeUpdateType, QuadMesh, PostProcessingUtils, NodeMaterial, passTexture, uv, vec2, vec3, vec4, max, float, sub, int, Loop, fract, pow, distance } from 'three/tsl';
+import { RenderTarget, Vector2, TempNode, NodeUpdateType, QuadMesh, PostProcessingUtils, NodeMaterial } from 'three/webgpu';
+import { convertToTexture, nodeObject, Fn, passTexture, uv, vec2, vec3, vec4, max, float, sub, int, Loop, fract, pow, distance } from 'three/tsl';
 
 const _quadMesh = /*@__PURE__*/ new QuadMesh();
 const _size = /*@__PURE__*/ new Vector2();

+ 2 - 1
examples/jsm/tsl/display/Lut3DNode.js

@@ -1,4 +1,5 @@
-import { TempNode, nodeObject, Fn, float, uniform, vec3, vec4, mix } from 'three/tsl';
+import { TempNode } from 'three/webgpu';
+import { nodeObject, Fn, float, uniform, vec3, vec4, mix } from 'three/tsl';
 
 class Lut3DNode extends TempNode {
 

+ 2 - 2
examples/jsm/tsl/display/OutlineNode.js

@@ -1,5 +1,5 @@
-import { Color, DepthTexture, FloatType, RenderTarget, Vector2 } from 'three';
-import { Loop, int, exp, min, float, mul, uv, vec2, vec3, Fn, textureSize, orthographicDepthToViewZ, QuadMesh, screenUV, TempNode, nodeObject, NodeUpdateType, uniform, vec4, NodeMaterial, passTexture, texture, perspectiveDepthToViewZ, positionView, PostProcessingUtils } from 'three/tsl';
+import { Color, DepthTexture, FloatType, RenderTarget, Vector2, TempNode, QuadMesh, NodeMaterial, PostProcessingUtils, NodeUpdateType } from 'three/webgpu';
+import { Loop, int, exp, min, float, mul, uv, vec2, vec3, Fn, textureSize, orthographicDepthToViewZ, screenUV, nodeObject, uniform, vec4, passTexture, texture, perspectiveDepthToViewZ, positionView } from 'three/tsl';
 
 const _quadMesh = /*@__PURE__*/ new QuadMesh();
 const _size = /*@__PURE__*/ new Vector2();

+ 2 - 1
examples/jsm/tsl/display/ParallaxBarrierPassNode.js

@@ -1,4 +1,5 @@
-import { nodeObject, Fn, vec4, uv, NodeMaterial, If, mod, screenCoordinate } from 'three/tsl';
+import { NodeMaterial } from 'three/webgpu';
+import { nodeObject, Fn, vec4, uv, If, mod, screenCoordinate } from 'three/tsl';
 import StereoCompositePassNode from './StereoCompositePassNode.js';
 
 class ParallaxBarrierPassNode extends StereoCompositePassNode {

+ 2 - 2
examples/jsm/tsl/display/PixelationPassNode.js

@@ -1,5 +1,5 @@
-import { NearestFilter, Vector4 } from 'three';
-import { TempNode, nodeObject, Fn, float, NodeUpdateType, uv, uniform, convertToTexture, vec2, vec3, clamp, floor, dot, smoothstep, If, sign, step, mrt, output, normalView, PassNode, property } from 'three/tsl';
+import { NearestFilter, Vector4, TempNode, NodeUpdateType, PassNode } from 'three/webgpu';
+import { nodeObject, Fn, float, uv, uniform, convertToTexture, vec2, vec3, clamp, floor, dot, smoothstep, If, sign, step, mrt, output, normalView, property } from 'three/tsl';
 
 class PixelationNode extends TempNode {
 

+ 2 - 1
examples/jsm/tsl/display/RGBShiftNode.js

@@ -1,4 +1,5 @@
-import { TempNode, nodeObject, Fn, uv, uniform, vec2, sin, cos, vec4, convertToTexture } from 'three/tsl';
+import { TempNode } from 'three/webgpu';
+import { nodeObject, Fn, uv, uniform, vec2, sin, cos, vec4, convertToTexture } from 'three/tsl';
 
 class RGBShiftNode extends TempNode {
 

+ 2 - 2
examples/jsm/tsl/display/SMAANode.js

@@ -1,5 +1,5 @@
-import { HalfFloatType, LinearFilter, NearestFilter, RenderTarget, Texture, Vector2 } from 'three';
-import { abs, QuadMesh, NodeMaterial, TempNode, nodeObject, Fn, NodeUpdateType, uv, uniform, convertToTexture, varyingProperty, vec2, vec4, modelViewProjection, passTexture, max, step, dot, float, texture, If, Loop, int, Break, sqrt, sign, mix, PostProcessingUtils } from 'three/tsl';
+import { HalfFloatType, LinearFilter, NearestFilter, RenderTarget, Texture, Vector2, QuadMesh, NodeMaterial, TempNode, PostProcessingUtils } from 'three/webgpu';
+import { abs, nodeObject, Fn, NodeUpdateType, uv, uniform, convertToTexture, varyingProperty, vec2, vec4, modelViewProjection, passTexture, max, step, dot, float, texture, If, Loop, int, Break, sqrt, sign, mix } from 'three/tsl';
 
 const _quadMesh = /*@__PURE__*/ new QuadMesh();
 const _size = /*@__PURE__*/ new Vector2();

+ 2 - 2
examples/jsm/tsl/display/SSAAPassNode.js

@@ -1,5 +1,5 @@
-import { AdditiveBlending, Color, Vector2 } from 'three';
-import { nodeObject, uniform, mrt, PassNode, QuadMesh, texture, NodeMaterial, getTextureIndex, PostProcessingUtils } from 'three/tsl';
+import { AdditiveBlending, Color, Vector2, PostProcessingUtils, PassNode, QuadMesh, NodeMaterial } from 'three/webgpu';
+import { nodeObject, uniform, mrt, texture, getTextureIndex } from 'three/tsl';
 
 const _size = /*@__PURE__*/ new Vector2();
 

+ 2 - 2
examples/jsm/tsl/display/SSRNode.js

@@ -1,5 +1,5 @@
-import { NearestFilter, RenderTarget, Vector2 } from 'three';
-import { reference, viewZToPerspectiveDepth, logarithmicDepthToViewZ, getScreenPosition, getViewPosition, sqrt, mul, div, cross, float, Continue, Break, Loop, int, max, abs, sub, If, dot, reflect, normalize, screenCoordinate, QuadMesh, TempNode, nodeObject, Fn, NodeUpdateType, passTexture, NodeMaterial, uv, uniform, perspectiveDepthToViewZ, orthographicDepthToViewZ, vec2, vec3, vec4, PostProcessingUtils } from 'three/tsl';
+import { NearestFilter, RenderTarget, Vector2, PostProcessingUtils, QuadMesh, TempNode, NodeMaterial, NodeUpdateType } from 'three/webgpu';
+import { reference, viewZToPerspectiveDepth, logarithmicDepthToViewZ, getScreenPosition, getViewPosition, sqrt, mul, div, cross, float, Continue, Break, Loop, int, max, abs, sub, If, dot, reflect, normalize, screenCoordinate, nodeObject, Fn, passTexture, uv, uniform, perspectiveDepthToViewZ, orthographicDepthToViewZ, vec2, vec3, vec4 } from 'three/tsl';
 
 const _quadMesh = /*@__PURE__*/ new QuadMesh();
 const _size = /*@__PURE__*/ new Vector2();

+ 2 - 2
examples/jsm/tsl/display/SobelOperatorNode.js

@@ -1,5 +1,5 @@
-import { Vector2 } from 'three';
-import { TempNode, nodeObject, Fn, NodeUpdateType, uv, uniform, convertToTexture, vec2, vec3, vec4, mat3, luminance, add } from 'three/tsl';
+import { Vector2, TempNode, NodeUpdateType } from 'three/webgpu';
+import { nodeObject, Fn, uv, uniform, convertToTexture, vec2, vec3, vec4, mat3, luminance, add } from 'three/tsl';
 
 class SobelOperatorNode extends TempNode {
 

+ 2 - 2
examples/jsm/tsl/display/StereoCompositePassNode.js

@@ -1,5 +1,5 @@
-import { RenderTarget, StereoCamera, HalfFloatType, LinearFilter, NearestFilter, Vector2 } from 'three';
-import { PassNode, QuadMesh, texture, PostProcessingUtils } from 'three/tsl';
+import { RenderTarget, StereoCamera, HalfFloatType, LinearFilter, NearestFilter, Vector2, PassNode, QuadMesh, PostProcessingUtils } from 'three/webgpu';
+import { texture } from 'three/tsl';
 
 const _size = /*@__PURE__*/ new Vector2();
 const _quadMesh = /*@__PURE__*/ new QuadMesh();

+ 2 - 2
examples/jsm/tsl/display/StereoPassNode.js

@@ -1,5 +1,5 @@
-import { StereoCamera, Vector2 } from 'three';
-import { PassNode, nodeObject, PostProcessingUtils } from 'three/tsl';
+import { StereoCamera, Vector2, PassNode, PostProcessingUtils } from 'three/webgpu';
+import { nodeObject } from 'three/tsl';
 
 const _size = /*@__PURE__*/ new Vector2();
 

+ 2 - 2
examples/jsm/tsl/display/TRAAPassNode.js

@@ -1,5 +1,5 @@
-import { Color, Vector2, NearestFilter, Matrix4 } from 'three';
-import { add, float, If, Loop, int, Fn, min, max, clamp, nodeObject, PassNode, QuadMesh, texture, NodeMaterial, uniform, uv, vec2, vec4, luminance, PostProcessingUtils } from 'three/tsl';
+import { Color, Vector2, NearestFilter, Matrix4, PostProcessingUtils, PassNode, QuadMesh, NodeMaterial } from 'three/webgpu';
+import { add, float, If, Loop, int, Fn, min, max, clamp, nodeObject, texture, uniform, uv, vec2, vec4, luminance } from 'three/tsl';
 
 const _quadMesh = /*@__PURE__*/ new QuadMesh();
 const _size = /*@__PURE__*/ new Vector2();

+ 2 - 1
examples/jsm/tsl/display/TransitionNode.js

@@ -1,4 +1,5 @@
-import { TempNode, nodeObject, Fn, float, uv, convertToTexture, vec4, If, int, clamp, sub, mix } from 'three/tsl';
+import { TempNode } from 'three/webgpu';
+import { nodeObject, Fn, float, uv, convertToTexture, vec4, If, int, clamp, sub, mix } from 'three/tsl';
 
 class TransitionNode extends TempNode {
 

+ 3 - 4
examples/jsm/tsl/lighting/TiledLightsNode.js

@@ -1,11 +1,10 @@
+import { DataTexture, FloatType, RGBAFormat, Vector2, Vector3, LightsNode, NodeUpdateType } from 'three/webgpu';
+
 import {
 	attributeArray, nodeProxy, int, float, vec2, ivec2, ivec4, uniform, Break, Loop,
-	Fn, If, Return, textureLoad, instanceIndex, screenCoordinate, directPointLight,
-	LightsNode, NodeUpdateType
+	Fn, If, Return, textureLoad, instanceIndex, screenCoordinate, directPointLight
 } from 'three/tsl';
 
-import { DataTexture, FloatType, RGBAFormat, Vector2, Vector3 } from 'three';
-
 export const circleIntersectsAABB = /*@__PURE__*/ Fn( ( [ circleCenter, radius, minBounds, maxBounds ] ) => {
 
 	// Find the closest point on the AABB to the circle's center using method chaining

+ 3 - 2
examples/misc_controls_fly.html

@@ -31,7 +31,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}
@@ -39,7 +40,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { pass } from 'three/tsl';
 			import { film } from 'three/addons/tsl/display/FilmNode.js';
 

+ 2 - 1
examples/webgpu_animation_retargeting.html

@@ -15,7 +15,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_animation_retargeting_readyplayer.html

@@ -16,7 +16,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_backdrop.html

@@ -16,7 +16,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_backdrop_area.html

@@ -16,7 +16,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_backdrop_water.html

@@ -16,7 +16,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_camera_logarithmicdepthbuffer.html

@@ -66,7 +66,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_clearcoat.html

@@ -15,7 +15,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_clipping.html

@@ -14,7 +14,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_compute_audio.html

@@ -20,7 +20,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_compute_birds.html

@@ -26,7 +26,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_compute_geometry.html

@@ -16,7 +16,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_compute_particles.html

@@ -28,7 +28,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_compute_particles_rain.html

@@ -15,7 +15,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_compute_particles_snow.html

@@ -15,7 +15,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/",
 					"stats-gl": "https://cdn.jsdelivr.net/npm/stats-gl@2.2.8/dist/main.js"
 				}

+ 2 - 1
examples/webgpu_compute_points.html

@@ -15,7 +15,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_compute_sort_bitonic.html

@@ -45,7 +45,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_compute_texture.html

@@ -15,7 +15,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_compute_texture_pingpong.html

@@ -15,7 +15,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_compute_water.html

@@ -17,7 +17,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_cubemap_adjustments.html

@@ -18,7 +18,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_cubemap_dynamic.html

@@ -19,7 +19,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_cubemap_mix.html

@@ -18,7 +18,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_custom_fog.html

@@ -15,7 +15,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_custom_fog_background.html

@@ -26,7 +26,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_depth_texture.html

@@ -15,7 +15,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_display_stereo.html

@@ -16,7 +16,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_equirectangular.html

@@ -16,7 +16,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_instance_mesh.html

@@ -16,7 +16,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_instance_points.html

@@ -17,7 +17,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_instance_sprites.html

@@ -16,7 +16,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_instance_uniform.html

@@ -16,7 +16,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_instancing_morph.html

@@ -11,7 +11,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_lensflares.html

@@ -18,7 +18,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_lightprobe.html

@@ -16,7 +16,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_lightprobe_cubecamera.html

@@ -16,7 +16,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_lights_custom.html

@@ -15,7 +15,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_lights_ies_spotlight.html

@@ -16,7 +16,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_lights_phong.html

@@ -17,7 +17,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 1 - 0
examples/webgpu_lights_physical.html

@@ -19,6 +19,7 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_lights_rectarealight.html

@@ -17,7 +17,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_lights_selective.html

@@ -17,7 +17,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_lights_tiled.html

@@ -16,7 +16,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_lines_fat.html

@@ -17,7 +17,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_lines_fat_wireframe.html

@@ -17,7 +17,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_loader_gltf.html

@@ -19,7 +19,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_loader_gltf_anisotropy.html

@@ -18,7 +18,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_loader_gltf_compressed.html

@@ -16,7 +16,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_loader_gltf_dispersion.html

@@ -17,7 +17,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_loader_gltf_iridescence.html

@@ -18,7 +18,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_loader_gltf_sheen.html

@@ -22,7 +22,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_loader_gltf_transmission.html

@@ -18,7 +18,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_loader_materialx.html

@@ -21,7 +21,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_materials.html

@@ -16,7 +16,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_materials_alphahash.html

@@ -11,7 +11,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_materials_arrays.html

@@ -16,7 +16,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_materials_basic.html

@@ -11,7 +11,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_materials_displacementmap.html

@@ -18,7 +18,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_materials_envmaps.html

@@ -17,7 +17,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_materials_envmaps_bpcem.html

@@ -16,7 +16,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

+ 2 - 1
examples/webgpu_materials_lightmap.html

@@ -12,7 +12,8 @@
 			{
 				"imports": {
 					"three": "../build/three.webgpu.js",
-					"three/tsl": "../build/three.webgpu.js",
+					"three/webgpu": "../build/three.webgpu.js",
+					"three/tsl": "../build/three.tsl.js",
 					"three/addons/": "./jsm/"
 				}
 			}

Някои файлове не бяха показани, защото твърде много файлове са промени

粤ICP备19079148号