Explorar o código

Examples: Rename import from `three` to `three/webgpu` of webgpu (#31518)

sunag hai 7 meses
pai
achega
490c70a527
Modificáronse 100 ficheiros con 109 adicións e 109 borrados
  1. 2 2
      examples/misc_raycaster_helper.html
  2. 1 1
      examples/physics_jolt_instancing.html
  3. 1 1
      examples/webgpu_animation_retargeting.html
  4. 1 1
      examples/webgpu_animation_retargeting_readyplayer.html
  5. 1 1
      examples/webgpu_backdrop.html
  6. 1 1
      examples/webgpu_backdrop_area.html
  7. 1 1
      examples/webgpu_backdrop_water.html
  8. 1 1
      examples/webgpu_camera.html
  9. 1 1
      examples/webgpu_camera_array.html
  10. 1 1
      examples/webgpu_camera_logarithmicdepthbuffer.html
  11. 1 1
      examples/webgpu_caustics.html
  12. 1 1
      examples/webgpu_centroid_sampling.html
  13. 2 2
      examples/webgpu_clearcoat.html
  14. 1 1
      examples/webgpu_clipping.html
  15. 1 1
      examples/webgpu_compute_audio.html
  16. 2 2
      examples/webgpu_compute_birds.html
  17. 2 2
      examples/webgpu_compute_cloth.html
  18. 1 1
      examples/webgpu_compute_geometry.html
  19. 1 1
      examples/webgpu_compute_particles.html
  20. 1 1
      examples/webgpu_compute_particles_fluid.html
  21. 1 1
      examples/webgpu_compute_particles_rain.html
  22. 1 1
      examples/webgpu_compute_particles_snow.html
  23. 1 1
      examples/webgpu_compute_points.html
  24. 2 2
      examples/webgpu_compute_sort_bitonic.html
  25. 1 1
      examples/webgpu_compute_texture.html
  26. 1 1
      examples/webgpu_compute_texture_3d.html
  27. 1 1
      examples/webgpu_compute_texture_pingpong.html
  28. 1 1
      examples/webgpu_compute_water.html
  29. 1 1
      examples/webgpu_cubemap_adjustments.html
  30. 2 2
      examples/webgpu_cubemap_dynamic.html
  31. 1 1
      examples/webgpu_cubemap_mix.html
  32. 1 1
      examples/webgpu_custom_fog.html
  33. 1 1
      examples/webgpu_custom_fog_background.html
  34. 1 1
      examples/webgpu_depth_texture.html
  35. 1 1
      examples/webgpu_display_stereo.html
  36. 1 1
      examples/webgpu_equirectangular.html
  37. 1 1
      examples/webgpu_instance_mesh.html
  38. 1 1
      examples/webgpu_instance_path.html
  39. 1 1
      examples/webgpu_instance_points.html
  40. 1 1
      examples/webgpu_instance_sprites.html
  41. 1 1
      examples/webgpu_instance_uniform.html
  42. 1 1
      examples/webgpu_instancing_morph.html
  43. 1 1
      examples/webgpu_layers.html
  44. 1 1
      examples/webgpu_lensflares.html
  45. 1 1
      examples/webgpu_lightprobe.html
  46. 1 1
      examples/webgpu_lightprobe_cubecamera.html
  47. 1 1
      examples/webgpu_lights_custom.html
  48. 1 1
      examples/webgpu_lights_ies_spotlight.html
  49. 1 1
      examples/webgpu_lights_phong.html
  50. 1 1
      examples/webgpu_lights_physical.html
  51. 1 1
      examples/webgpu_lights_pointlights.html
  52. 1 1
      examples/webgpu_lights_projector.html
  53. 1 1
      examples/webgpu_lights_rectarealight.html
  54. 1 1
      examples/webgpu_lights_selective.html
  55. 1 1
      examples/webgpu_lights_spotlight.html
  56. 1 1
      examples/webgpu_lights_tiled.html
  57. 1 1
      examples/webgpu_lines_fat.html
  58. 1 1
      examples/webgpu_lines_fat_raycasting.html
  59. 1 1
      examples/webgpu_lines_fat_wireframe.html
  60. 1 1
      examples/webgpu_loader_gltf.html
  61. 1 1
      examples/webgpu_loader_gltf_anisotropy.html
  62. 1 1
      examples/webgpu_loader_gltf_compressed.html
  63. 1 1
      examples/webgpu_loader_gltf_dispersion.html
  64. 1 1
      examples/webgpu_loader_gltf_iridescence.html
  65. 1 1
      examples/webgpu_loader_gltf_sheen.html
  66. 1 1
      examples/webgpu_loader_gltf_transmission.html
  67. 1 1
      examples/webgpu_loader_materialx.html
  68. 1 1
      examples/webgpu_materials.html
  69. 1 1
      examples/webgpu_materials_alphahash.html
  70. 1 1
      examples/webgpu_materials_arrays.html
  71. 1 1
      examples/webgpu_materials_basic.html
  72. 1 1
      examples/webgpu_materials_displacementmap.html
  73. 2 2
      examples/webgpu_materials_envmaps.html
  74. 2 2
      examples/webgpu_materials_envmaps_bpcem.html
  75. 1 1
      examples/webgpu_materials_lightmap.html
  76. 1 1
      examples/webgpu_materials_matcap.html
  77. 1 1
      examples/webgpu_materials_toon.html
  78. 2 2
      examples/webgpu_materials_transmission.html
  79. 1 1
      examples/webgpu_materials_video.html
  80. 1 1
      examples/webgpu_materialx_noise.html
  81. 1 1
      examples/webgpu_mesh_batch.html
  82. 1 1
      examples/webgpu_mirror.html
  83. 1 1
      examples/webgpu_modifier_curve.html
  84. 1 1
      examples/webgpu_morphtargets.html
  85. 1 1
      examples/webgpu_morphtargets_face.html
  86. 1 1
      examples/webgpu_mrt.html
  87. 1 1
      examples/webgpu_mrt_mask.html
  88. 1 1
      examples/webgpu_multiple_rendertargets.html
  89. 1 1
      examples/webgpu_multiple_rendertargets_readback.html
  90. 1 1
      examples/webgpu_multisampled_renderbuffers.html
  91. 1 1
      examples/webgpu_occlusion.html
  92. 1 1
      examples/webgpu_ocean.html
  93. 1 1
      examples/webgpu_parallax_uv.html
  94. 1 1
      examples/webgpu_particles.html
  95. 1 1
      examples/webgpu_performance.html
  96. 1 1
      examples/webgpu_performance_renderbundle.html
  97. 1 1
      examples/webgpu_pmrem_cubemap.html
  98. 1 1
      examples/webgpu_pmrem_equirectangular.html
  99. 1 1
      examples/webgpu_pmrem_scene.html
  100. 1 1
      examples/webgpu_portal.html

+ 2 - 2
examples/misc_raycaster_helper.html

@@ -25,7 +25,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { RaycasterHelper } from 'https://cdn.jsdelivr.net/npm/@gsimone/three-raycaster-helper@0.1.0/dist/gsimone-three-raycaster-helper.esm.js';
 
 			let scene, renderer;
@@ -110,4 +110,4 @@
 		</script>
 
 	</body>
-</html>
+</html>

+ 1 - 1
examples/physics_jolt_instancing.html

@@ -25,7 +25,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
 			import { JoltPhysics } from 'three/addons/physics/JoltPhysics.js';
 			import Stats from 'three/addons/libs/stats.module.js';

+ 1 - 1
examples/webgpu_animation_retargeting.html

@@ -24,7 +24,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { color, screenUV, hue, reflector, time, Fn, vec2, length, atan, float, sin, cos, vec3, sub, mul, pow, blendDodge, normalWorldGeometry } from 'three/tsl';
 
 			import Stats from 'three/addons/libs/stats.module.js';

+ 1 - 1
examples/webgpu_animation_retargeting_readyplayer.html

@@ -25,7 +25,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { screenUV, color, vec2, vec4, reflector, positionWorld } from 'three/tsl';
 
 			import Stats from 'three/addons/libs/stats.module.js';

+ 1 - 1
examples/webgpu_backdrop.html

@@ -25,7 +25,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { float, vec3, color, viewportSharedTexture, hue, blendOverlay, posterize, grayscale, saturation, viewportSafeUV, screenUV, checker, uv, time, oscSine, output } from 'three/tsl';
 
 			import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';

+ 1 - 1
examples/webgpu_backdrop_area.html

@@ -25,7 +25,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { color, positionWorld, linearDepth, viewportLinearDepth, viewportSharedTexture, screenUV, hue, time, checker, uv, modelScale } from 'three/tsl';
 			import { hashBlur } from 'three/addons/tsl/display/hashBlur.js';
 

+ 1 - 1
examples/webgpu_backdrop_water.html

@@ -25,7 +25,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { color, vec2, pass, linearDepth, normalWorld, triplanarTexture, texture, objectPosition, screenUV, viewportLinearDepth, viewportDepthTexture, viewportSharedTexture, mx_worley_noise_float, positionWorld, time } from 'three/tsl';
 			import { gaussianBlur } from 'three/addons/tsl/display/GaussianBlurNode.js';
 

+ 1 - 1
examples/webgpu_camera.html

@@ -29,7 +29,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { color } from 'three/tsl';
 
 			let SCREEN_WIDTH = window.innerWidth;

+ 1 - 1
examples/webgpu_camera_array.html

@@ -21,7 +21,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import Stats from 'three/addons/libs/stats.module.js';
 

+ 1 - 1
examples/webgpu_camera_logarithmicdepthbuffer.html

@@ -75,7 +75,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import { FontLoader } from 'three/addons/loaders/FontLoader.js';
 			import { TextGeometry } from 'three/addons/geometries/TextGeometry.js';

+ 1 - 1
examples/webgpu_caustics.html

@@ -25,7 +25,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import { uniform, refract, div, positionViewDirection, positionLocal, normalView, texture, Fn, vec2, vec3, vec4 } from 'three/tsl';
 

+ 1 - 1
examples/webgpu_centroid_sampling.html

@@ -57,7 +57,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { varying, uv, texture, Fn } from 'three/tsl';
 
 			import { GUI } from 'three/addons/libs/lil-gui.module.min.js';

+ 2 - 2
examples/webgpu_clearcoat.html

@@ -24,7 +24,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import Stats from 'three/addons/libs/stats.module.js';
 
@@ -245,4 +245,4 @@
 
 		</script>
 	</body>
-</html>
+</html>

+ 1 - 1
examples/webgpu_clipping.html

@@ -23,7 +23,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import Stats from 'three/addons/libs/stats.module.js';
 

+ 1 - 1
examples/webgpu_compute_audio.html

@@ -29,7 +29,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { Fn, uniform, instanceIndex, instancedArray, float, texture, screenUV, color } from 'three/tsl';
 
 			import { GUI } from 'three/addons/libs/lil-gui.module.min.js';

+ 2 - 2
examples/webgpu_compute_birds.html

@@ -36,7 +36,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { uniform, varying, vec4, add, sub, max, dot, sin, mat3, uint, negate, instancedArray, cameraProjectionMatrix, cameraViewMatrix, positionLocal, modelWorldMatrix, sqrt, attribute, property, float, Fn, If, cos, Loop, Continue, normalize, instanceIndex, length } from 'three/tsl';
 
 			import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
@@ -517,4 +517,4 @@
 
 		</script>
 	</body>
-</html>
+</html>

+ 2 - 2
examples/webgpu_compute_cloth.html

@@ -25,7 +25,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import { Fn, If, Return, instancedArray, instanceIndex, uniform, select, attribute, uint, Loop, float, transformNormalToView, cross, triNoise3D, time } from 'three/tsl';
 
@@ -561,4 +561,4 @@
 
 		</script>
 	</body>
-</html>
+</html>

+ 1 - 1
examples/webgpu_compute_geometry.html

@@ -25,7 +25,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { vec4, storage, Fn, If, uniform, instanceIndex, objectWorldMatrix, color, screenUV, attribute } from 'three/tsl';
 
 			import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';

+ 1 - 1
examples/webgpu_compute_particles.html

@@ -37,7 +37,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { Fn, If, uniform, float, uv, vec2, vec3, hash, shapeCircle,
 				instancedArray, instanceIndex } from 'three/tsl';
 

+ 1 - 1
examples/webgpu_compute_particles_fluid.html

@@ -26,7 +26,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import { Fn, If, Return, instancedArray, instanceIndex, uniform, attribute, uint, float, clamp, struct, atomicStore, int, ivec3, array, vec3, atomicAdd, Loop, atomicLoad, max, pow, mat3, vec4, cross, step } from 'three/tsl';
 

+ 1 - 1
examples/webgpu_compute_particles_rain.html

@@ -24,7 +24,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { Fn, texture, uv, uint, instancedArray, positionWorld, billboarding, time, hash, deltaTime, vec2, instanceIndex, positionGeometry, If } from 'three/tsl';
 
 			import { OrbitControls } from 'three/addons/controls/OrbitControls.js';

+ 1 - 1
examples/webgpu_compute_particles_snow.html

@@ -25,7 +25,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { Fn, texture, vec3, pass, color, uint, screenUV, instancedArray, positionWorld, positionLocal, time, vec2, hash, instanceIndex, If } from 'three/tsl';
 			import { gaussianBlur } from 'three/addons/tsl/display/GaussianBlurNode.js';
 

+ 1 - 1
examples/webgpu_compute_points.html

@@ -25,7 +25,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import Stats from 'stats-gl';
 

+ 2 - 2
examples/webgpu_compute_sort_bitonic.html

@@ -54,7 +54,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { storage, If, vec3, not, uniform, uv, uint, float, Fn, vec2, abs, int, invocationLocalIndex, workgroupArray, uvec2, floor, instanceIndex, workgroupBarrier, atomicAdd, atomicStore, workgroupId } from 'three/tsl';
 
 			import WebGPU from 'three/addons/capabilities/WebGPU.js';
@@ -584,4 +584,4 @@
 			}
 		</script>
 	</body>
-</html>
+</html>

+ 1 - 1
examples/webgpu_compute_texture.html

@@ -24,7 +24,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { texture, textureStore, Fn, instanceIndex, float, uvec2, vec4 } from 'three/tsl';
 
 			import WebGPU from 'three/addons/capabilities/WebGPU.js';

+ 1 - 1
examples/webgpu_compute_texture_3d.html

@@ -25,7 +25,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { time, mx_noise_vec3, instanceIndex, textureStore, float, vec3, vec4, If, Break, Fn, smoothstep, texture3D, uniform } from 'three/tsl';
 
 			import { RaymarchingBox } from 'three/addons/tsl/utils/Raymarching.js';

+ 1 - 1
examples/webgpu_compute_texture_pingpong.html

@@ -24,7 +24,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { storageTexture, wgslFn, code, instanceIndex, uniform, NodeAccess } from 'three/tsl';
 
 			import WebGPU from 'three/addons/capabilities/WebGPU.js';

+ 1 - 1
examples/webgpu_compute_water.html

@@ -26,7 +26,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { instanceIndex, struct, If, uint, int, floor, float, length, clamp, vec2, cos, vec3, vertexIndex, Fn, uniform, instancedArray, min, max, positionLocal, transformNormalToView } from 'three/tsl';
 
 			import { SimplexNoise } from 'three/addons/math/SimplexNoise.js';

+ 1 - 1
examples/webgpu_cubemap_adjustments.html

@@ -27,7 +27,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { uniform, mix, pmremTexture, reference, positionLocal, hue, saturation, positionWorld, normalWorld, positionWorldDirection, reflectVector } from 'three/tsl';
 
 			import { RGBMLoader } from 'three/addons/loaders/RGBMLoader.js';

+ 2 - 2
examples/webgpu_cubemap_dynamic.html

@@ -28,7 +28,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
 			import { RGBMLoader } from 'three/addons/loaders/RGBMLoader.js';
@@ -177,4 +177,4 @@
 		</script>
 
 	</body>
-</html>
+</html>

+ 1 - 1
examples/webgpu_cubemap_mix.html

@@ -27,7 +27,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { mix, oscSine, time, pmremTexture, float } from 'three/tsl';
 
 			import { RGBMLoader } from 'three/addons/loaders/RGBMLoader.js';

+ 1 - 1
examples/webgpu_custom_fog.html

@@ -24,7 +24,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { color, fog, float, positionWorld, triNoise3D, positionView, normalWorld, uniform } from 'three/tsl';
 
 			import { OrbitControls } from 'three/addons/controls/OrbitControls.js';

+ 1 - 1
examples/webgpu_custom_fog_background.html

@@ -35,7 +35,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { pass, color, rangeFogFactor } from 'three/tsl';
 
 			import { RGBELoader } from 'three/addons/loaders/RGBELoader.js';

+ 1 - 1
examples/webgpu_depth_texture.html

@@ -24,7 +24,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { texture } from 'three/tsl';
 
 			import { OrbitControls } from 'three/addons/controls/OrbitControls.js';

+ 1 - 1
examples/webgpu_display_stereo.html

@@ -25,7 +25,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import { stereoPass } from 'three/addons/tsl/display/StereoPassNode.js';
 			import { anaglyphPass } from 'three/addons/tsl/display/AnaglyphPassNode.js';

+ 1 - 1
examples/webgpu_equirectangular.html

@@ -25,7 +25,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { texture, equirectUV } from 'three/tsl';
 
 			import { GUI } from 'three/addons/libs/lil-gui.module.min.js';

+ 1 - 1
examples/webgpu_instance_mesh.html

@@ -25,7 +25,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { mix, range, normalWorld, oscSine, time } from 'three/tsl';
 
 			import Stats from 'three/addons/libs/stats.module.js';

+ 1 - 1
examples/webgpu_instance_path.html

@@ -25,7 +25,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
 			import { RoomEnvironment } from 'three/addons/environments/RoomEnvironment.js';

+ 1 - 1
examples/webgpu_instance_points.html

@@ -26,7 +26,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { color, storage, Fn, instancedBufferAttribute, instanceIndex, sin, time, float, uniform, shapeCircle, mix, vec3 } from 'three/tsl';
 
 			import Stats from 'three/addons/libs/stats.module.js';

+ 1 - 1
examples/webgpu_instance_sprites.html

@@ -25,7 +25,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import Stats from 'three/addons/libs/stats.module.js';
 			import { GUI } from 'three/addons/libs/lil-gui.module.min.js';

+ 1 - 1
examples/webgpu_instance_uniform.html

@@ -25,7 +25,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { nodeObject, uniform, cubeTexture } from 'three/tsl';
 
 			import { OrbitControls } from 'three/addons/controls/OrbitControls.js';

+ 1 - 1
examples/webgpu_instancing_morph.html

@@ -20,7 +20,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
 

+ 1 - 1
examples/webgpu_layers.html

@@ -25,7 +25,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import { GUI } from 'three/addons/libs/lil-gui.module.min.js';
 

+ 1 - 1
examples/webgpu_lensflares.html

@@ -27,7 +27,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import Stats from 'three/addons/libs/stats.module.js';
 

+ 1 - 1
examples/webgpu_lightprobe.html

@@ -25,7 +25,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import { GUI } from 'three/addons/libs/lil-gui.module.min.js';
 

+ 1 - 1
examples/webgpu_lightprobe_cubecamera.html

@@ -25,7 +25,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
 			import { LightProbeHelper } from 'three/addons/helpers/LightProbeHelperGPU.js';

+ 1 - 1
examples/webgpu_lights_custom.html

@@ -24,7 +24,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { color, lights } from 'three/tsl';
 
 			import { OrbitControls } from 'three/addons/controls/OrbitControls.js';

+ 1 - 1
examples/webgpu_lights_ies_spotlight.html

@@ -25,7 +25,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import { OrbitControls } from './jsm/controls/OrbitControls.js';
 

+ 1 - 1
examples/webgpu_lights_phong.html

@@ -26,7 +26,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { color, fog, rangeFogFactor, checker, uv, mix, texture, lights, normalMap } from 'three/tsl';
 
 			import Stats from 'three/addons/libs/stats.module.js';

+ 1 - 1
examples/webgpu_lights_physical.html

@@ -27,7 +27,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import Stats from 'three/addons/libs/stats.module.js';
 			import { GUI } from 'three/addons/libs/lil-gui.module.min.js';

+ 1 - 1
examples/webgpu_lights_pointlights.html

@@ -27,7 +27,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import { OBJLoader } from 'three/addons/loaders/OBJLoader.js';
 			import { OrbitControls } from 'three/addons/controls/OrbitControls.js';

+ 1 - 1
examples/webgpu_lights_projector.html

@@ -30,7 +30,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { Fn, color, mx_worley_noise_float, time } from 'three/tsl';
 
 			import Stats from 'three/addons/libs/stats.module.js';

+ 1 - 1
examples/webgpu_lights_rectarealight.html

@@ -26,7 +26,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import Stats from 'three/addons/libs/stats.module.js';
 

+ 1 - 1
examples/webgpu_lights_selective.html

@@ -26,7 +26,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { fog, rangeFogFactor, color, lights, texture, normalMap } from 'three/tsl';
 
 			import Stats from 'three/addons/libs/stats.module.js';

+ 1 - 1
examples/webgpu_lights_spotlight.html

@@ -25,7 +25,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import { GUI } from 'three/addons/libs/lil-gui.module.min.js';
 

+ 1 - 1
examples/webgpu_lights_tiled.html

@@ -25,7 +25,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { texture, uv, pass, normalMap, uniform } from 'three/tsl';
 			import { bloom } from 'three/addons/tsl/display/BloomNode.js';
 

+ 1 - 1
examples/webgpu_lines_fat.html

@@ -26,7 +26,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { color } from 'three/tsl';
 
 			import Stats from 'three/addons/libs/stats.module.js';

+ 1 - 1
examples/webgpu_lines_fat_raycasting.html

@@ -26,7 +26,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import Stats from 'stats-gl';
 

+ 1 - 1
examples/webgpu_lines_fat_wireframe.html

@@ -26,7 +26,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { color } from 'three/tsl';
 
 			import Stats from 'three/addons/libs/stats.module.js';

+ 1 - 1
examples/webgpu_loader_gltf.html

@@ -28,7 +28,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import { RGBELoader } from 'three/addons/loaders/RGBELoader.js';
 

+ 1 - 1
examples/webgpu_loader_gltf_anisotropy.html

@@ -27,7 +27,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
 			import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';

+ 1 - 1
examples/webgpu_loader_gltf_compressed.html

@@ -25,7 +25,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
 			import { KTX2Loader } from 'three/addons/loaders/KTX2Loader.js';

+ 1 - 1
examples/webgpu_loader_gltf_dispersion.html

@@ -26,7 +26,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
 			import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';

+ 1 - 1
examples/webgpu_loader_gltf_iridescence.html

@@ -27,7 +27,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
 			import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';

+ 1 - 1
examples/webgpu_loader_gltf_sheen.html

@@ -31,7 +31,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
 			import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';

+ 1 - 1
examples/webgpu_loader_gltf_transmission.html

@@ -27,7 +27,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
 			import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';

+ 1 - 1
examples/webgpu_loader_materialx.html

@@ -30,7 +30,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import { OrbitControls } from './jsm/controls/OrbitControls.js';
 

+ 1 - 1
examples/webgpu_materials.html

@@ -25,7 +25,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import * as TSL from 'three/tsl';
 
 			import { Fn, wgslFn, positionLocal, scriptable, positionWorld, normalLocal, normalWorld, normalView, color, texture, uv, float, vec2, vec3, vec4, oscSine, triplanarTexture, screenUV, js, string, Loop, cameraProjectionMatrix, ScriptableNodeResources } from 'three/tsl';

+ 1 - 1
examples/webgpu_materials_alphahash.html

@@ -20,7 +20,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import Stats from 'three/addons/libs/stats.module.js';
 			import { GUI } from 'three/addons/libs/lil-gui.module.min.js';

+ 1 - 1
examples/webgpu_materials_arrays.html

@@ -25,7 +25,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
 			import { GUI } from 'three/addons/libs/lil-gui.module.min.js';

+ 1 - 1
examples/webgpu_materials_basic.html

@@ -20,7 +20,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import { GUI } from 'three/addons/libs/lil-gui.module.min.js';
 

+ 1 - 1
examples/webgpu_materials_displacementmap.html

@@ -27,7 +27,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import Stats from 'three/addons/libs/stats.module.js';
 

+ 2 - 2
examples/webgpu_materials_envmaps.html

@@ -27,7 +27,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import { GUI } from 'three/addons/libs/lil-gui.module.min.js';
 			import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
@@ -186,4 +186,4 @@
 		</script>
 
 	</body>
-</html>
+</html>

+ 2 - 2
examples/webgpu_materials_envmaps_bpcem.html

@@ -26,7 +26,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { bumpMap, float, getParallaxCorrectNormal, pmremTexture, reflectVector, texture, uniform, vec3 } from 'three/tsl';
 
 			import { GUI } from 'three/addons/libs/lil-gui.module.min.js';
@@ -224,4 +224,4 @@
 		</script>
 
 	</body>
-</html>
+</html>

+ 1 - 1
examples/webgpu_materials_lightmap.html

@@ -21,7 +21,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { vec4, color, positionLocal, mix } from 'three/tsl';
 
 			import { GUI } from 'three/addons/libs/lil-gui.module.min.js';

+ 1 - 1
examples/webgpu_materials_matcap.html

@@ -26,7 +26,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import { GUI } from 'three/addons/libs/lil-gui.module.min.js';
 			import { OrbitControls } from 'three/addons/controls/OrbitControls.js';

+ 1 - 1
examples/webgpu_materials_toon.html

@@ -24,7 +24,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { toonOutlinePass } from 'three/tsl';
 
 			import Stats from 'three/addons/libs/stats.module.js';

+ 2 - 2
examples/webgpu_materials_transmission.html

@@ -24,7 +24,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import { GUI } from 'three/addons/libs/lil-gui.module.min.js';
 			import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
@@ -240,4 +240,4 @@
 
 		</script>
 	</body>
-</html>
+</html>

+ 1 - 1
examples/webgpu_materials_video.html

@@ -36,7 +36,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			let container;
 

+ 1 - 1
examples/webgpu_materialx_noise.html

@@ -24,7 +24,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { normalWorld, time, 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';

+ 1 - 1
examples/webgpu_mesh_batch.html

@@ -30,7 +30,7 @@
 
 	<script type="module">
 
-		import * as THREE from 'three';
+		import * as THREE from 'three/webgpu';
 
 		import Stats from 'three/addons/libs/stats.module.js';
 

+ 1 - 1
examples/webgpu_mirror.html

@@ -25,7 +25,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { reflector, uv, texture, color } from 'three/tsl';
 
 			import { OrbitControls } from 'three/addons/controls/OrbitControls.js';

+ 1 - 1
examples/webgpu_modifier_curve.html

@@ -26,7 +26,7 @@
 		</script>
 
 		<script type="module">
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { TransformControls } from 'three/addons/controls/TransformControls.js';
 			import Stats from 'three/addons/libs/stats.module.js';
 			import { Flow } from 'three/addons/modifiers/CurveModifierGPU.js';

+ 1 - 1
examples/webgpu_morphtargets.html

@@ -27,7 +27,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import { GUI } from 'three/addons/libs/lil-gui.module.min.js';
 

+ 1 - 1
examples/webgpu_morphtargets_face.html

@@ -31,7 +31,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import Stats from 'three/addons/libs/stats.module.js';
 

+ 1 - 1
examples/webgpu_mrt.html

@@ -26,7 +26,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { output, normalView, pass, step, diffuseColor, emissive, directionToColor, screenUV, mix, mrt, Fn } from 'three/tsl';
 
 			import { RGBELoader } from 'three/addons/loaders/RGBELoader.js';

+ 1 - 1
examples/webgpu_mrt_mask.html

@@ -26,7 +26,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { color, screenUV, mrt, output, pass, vec4 } from 'three/tsl';
 			import { gaussianBlur } from 'three/addons/tsl/display/GaussianBlurNode.js';
 

+ 1 - 1
examples/webgpu_multiple_rendertargets.html

@@ -25,7 +25,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { mix, vec2, step, texture, uv, screenUV, normalWorld, output, mrt } from 'three/tsl';
 
 			import { OrbitControls } from 'three/addons/controls/OrbitControls.js';

+ 1 - 1
examples/webgpu_multiple_rendertargets_readback.html

@@ -25,7 +25,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { mix, step, texture, screenUV, mrt, output, normalWorld, uv, vec2 } from 'three/tsl';
 
 			import { OrbitControls } from 'three/addons/controls/OrbitControls.js';

+ 1 - 1
examples/webgpu_multisampled_renderbuffers.html

@@ -24,7 +24,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { texture } from 'three/tsl';
 
 			import { GUI } from 'three/addons/libs/lil-gui.module.min.js';

+ 1 - 1
examples/webgpu_occlusion.html

@@ -26,7 +26,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { nodeObject, uniform } from 'three/tsl';
 
 			import { OrbitControls } from 'three/addons/controls/OrbitControls.js';

+ 1 - 1
examples/webgpu_ocean.html

@@ -26,7 +26,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import Stats from 'three/addons/libs/stats.module.js';
 

+ 1 - 1
examples/webgpu_parallax_uv.html

@@ -27,7 +27,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { texture, parallaxUV, blendOverlay, uv } from 'three/tsl';
 
 			import { OrbitControls } from 'three/addons/controls/OrbitControls.js';

+ 1 - 1
examples/webgpu_particles.html

@@ -24,7 +24,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { range, texture, mix, uv, color, rotateUV, positionLocal, time, uniform } from 'three/tsl';
 
 			import { GUI } from 'three/addons/libs/lil-gui.module.min.js';

+ 1 - 1
examples/webgpu_performance.html

@@ -29,7 +29,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 
 			import Stats from 'stats-gl';
 

+ 1 - 1
examples/webgpu_performance_renderbundle.html

@@ -39,7 +39,7 @@
 
 	<script type="module">
 
-		import * as THREE from 'three';
+		import * as THREE from 'three/webgpu';
 
 		import Stats from 'stats-gl';
 

+ 1 - 1
examples/webgpu_pmrem_cubemap.html

@@ -21,7 +21,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { normalWorldGeometry, uniform, normalView, positionViewDirection, cameraViewMatrix, pmremTexture } from 'three/tsl';
 
 			import { RGBMLoader } from 'three/addons/loaders/RGBMLoader.js';

+ 1 - 1
examples/webgpu_pmrem_equirectangular.html

@@ -21,7 +21,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { normalWorldGeometry, uniform, normalView, positionViewDirection, cameraViewMatrix, pmremTexture } from 'three/tsl';
 
 			import { RGBELoader } from 'three/addons/loaders/RGBELoader.js';

+ 1 - 1
examples/webgpu_pmrem_scene.html

@@ -21,7 +21,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { normalWorld, uniform, pmremTexture } from 'three/tsl';
 
 			import { OrbitControls } from 'three/addons/controls/OrbitControls.js';

+ 1 - 1
examples/webgpu_portal.html

@@ -25,7 +25,7 @@
 
 		<script type="module">
 
-			import * as THREE from 'three';
+			import * as THREE from 'three/webgpu';
 			import { pass, color, mx_worley_noise_float, time, screenUV, vec2, uv, normalWorld, mx_fractal_noise_vec3 } from 'three/tsl';
 
 			import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio

粤ICP备19079148号