Skip to content

Commit d954c5a

Browse files
committed
Update patch and delete examples
1 parent aa4ed3a commit d954c5a

File tree

370 files changed

+11
-56357
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

370 files changed

+11
-56357
lines changed

examples-testing/changes.patch

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3401,7 +3401,7 @@ index 1b46a805..e5798e30 100644
34013401

34023402
stats = new Stats();
34033403
diff --git a/examples-testing/examples/webgl_decals.ts b/examples-testing/examples/webgl_decals.ts
3404-
index 23cdb4da..bbaddccc 100644
3404+
index be346083..79d8dae6 100644
34053405
--- a/examples-testing/examples/webgl_decals.ts
34063406
+++ b/examples-testing/examples/webgl_decals.ts
34073407
@@ -7,12 +7,12 @@ import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
@@ -3458,13 +3458,13 @@ index 23cdb4da..bbaddccc 100644
34583458
if (mesh === undefined) return;
34593459

34603460
mouse.x = (x / window.innerWidth) * 2 - 1;
3461-
@@ -143,12 +143,12 @@ function init() {
3462-
mouseHelper.position.copy(p);
3463-
intersection.point.copy(p);
3461+
@@ -145,12 +145,12 @@ function init() {
3462+
3463+
const normalMatrix = new THREE.Matrix3().getNormalMatrix(mesh.matrixWorld);
34643464

34653465
- const n = intersects[0].face.normal.clone();
34663466
+ const n = intersects[0].face!.normal.clone();
3467-
n.transformDirection(mesh.matrixWorld);
3467+
n.applyNormalMatrix(normalMatrix);
34683468
n.multiplyScalar(10);
34693469
n.add(intersects[0].point);
34703470

@@ -3473,7 +3473,7 @@ index 23cdb4da..bbaddccc 100644
34733473
mouseHelper.lookAt(n);
34743474

34753475
const positions = line.geometry.attributes.position;
3476-
@@ -182,7 +182,7 @@ function loadLeePerrySmith() {
3476+
@@ -184,7 +184,7 @@ function loadLeePerrySmith() {
34773477
const loader = new GLTFLoader();
34783478

34793479
loader.load('models/gltf/LeePerrySmith/LeePerrySmith.glb', function (gltf) {
@@ -13143,13 +13143,13 @@ index d0255e43..c924d666 100644
1314313143
init();
1314413144

1314513145
diff --git a/examples-testing/examples/webgpu_animation_retargeting_readyplayer.ts b/examples-testing/examples/webgpu_animation_retargeting_readyplayer.ts
13146-
index 565aebb8..f5d6bf42 100644
13146+
index b0aed613..8607a01a 100644
1314713147
--- a/examples-testing/examples/webgpu_animation_retargeting_readyplayer.ts
1314813148
+++ b/examples-testing/examples/webgpu_animation_retargeting_readyplayer.ts
1314913149
@@ -1,20 +1,20 @@
1315013150
-import * as THREE from 'three';
1315113151
+import * as THREE from 'three/webgpu';
13152-
import { screenUV, color, vec2, reflector } from 'three/tsl';
13152+
import { screenUV, color, vec2, vec4, reflector, positionWorld } from 'three/tsl';
1315313153

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

@@ -13171,7 +13171,7 @@ index 565aebb8..f5d6bf42 100644
1317113171
new GLTFLoader().load('./models/gltf/readyplayer.me.glb', resolve, undefined, reject);
1317213172
}),
1317313173
]);
13174-
@@ -100,7 +100,13 @@ scene.add(floor);
13174+
@@ -102,7 +102,13 @@ scene.add(floor);
1317513175

1317613176
//
1317713177

@@ -13186,7 +13186,7 @@ index 565aebb8..f5d6bf42 100644
1318613186
const clip = sourceModel.animations[0];
1318713187

1318813188
const helper = new THREE.SkeletonHelper(sourceModel);
13189-
@@ -112,10 +118,10 @@ function getSource(sourceModel) {
13189+
@@ -114,10 +120,10 @@ function getSource(sourceModel) {
1319013190
return { clip, skeleton, mixer };
1319113191
}
1319213192

@@ -13896,7 +13896,7 @@ index 04023326..05ee79b0 100644
1389613896
init();
1389713897

1389813898
diff --git a/examples-testing/examples/webgpu_materials_arrays.ts b/examples-testing/examples/webgpu_materials_arrays.ts
13899-
index 8db371e6..b893f2c0 100644
13899+
index 35a25f77..b893f2c0 100644
1390013900
--- a/examples-testing/examples/webgpu_materials_arrays.ts
1390113901
+++ b/examples-testing/examples/webgpu_materials_arrays.ts
1390213902
@@ -1,11 +1,11 @@
@@ -13915,15 +13915,6 @@ index 8db371e6..b893f2c0 100644
1391513915

1391613916
const api = {
1391713917
webgpu: true,
13918-
@@ -21,7 +21,7 @@ function init(forceWebGL = false) {
13919-
}
13920-
13921-
// renderer
13922-
- renderer = new THREE.WebGLRenderer({
13923-
+ renderer = new THREE.WebGPURenderer({
13924-
forceWebGL,
13925-
antialias: true,
13926-
});
1392713918
diff --git a/examples-testing/examples/webgpu_materials_basic.ts b/examples-testing/examples/webgpu_materials_basic.ts
1392813919
index 0161a9c7..590f668d 100644
1392913920
--- a/examples-testing/examples/webgpu_materials_basic.ts

examples-testing/examples/css2d_label.ts

Lines changed: 0 additions & 186 deletions
This file was deleted.

0 commit comments

Comments
 (0)