Skip to content

Commit

Permalink
Update three.js for testing (#1220)
Browse files Browse the repository at this point in the history
* Update three.js

* Add examples

* Update patch and delete examples
  • Loading branch information
Methuselah96 committed Aug 30, 2024
1 parent f7dd7e9 commit a778725
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions examples-testing/changes.patch
Original file line number Diff line number Diff line change
Expand Up @@ -15267,10 +15267,10 @@ index 097d06af..3836e7ee 100644

init();

diff --git a/examples-testing/examples/webgpu_texture2darray_compressed.ts b/examples-testing/examples/webgpu_texture2darray_compressed.ts
diff --git a/examples-testing/examples/webgpu_textures_2d-array_compressed.ts b/examples-testing/examples/webgpu_textures_2d-array_compressed.ts
index 3e8bf7ee..56db87fd 100644
--- a/examples-testing/examples/webgpu_texture2darray_compressed.ts
+++ b/examples-testing/examples/webgpu_texture2darray_compressed.ts
--- a/examples-testing/examples/webgpu_textures_2d-array_compressed.ts
+++ b/examples-testing/examples/webgpu_textures_2d-array_compressed.ts
@@ -1,11 +1,16 @@
-import * as THREE from 'three';
+import * as THREE from 'three/webgpu';
Expand Down Expand Up @@ -15361,7 +15361,7 @@ index e8ebe87d..9fae06bd 100644
const data = texture.image.data;

diff --git a/examples-testing/examples/webgpu_tsl_coffee_smoke.ts b/examples-testing/examples/webgpu_tsl_coffee_smoke.ts
index 5c2c8ea4..2b11fc73 100644
index 9e2404cc..9bd5ef8a 100644
--- a/examples-testing/examples/webgpu_tsl_coffee_smoke.ts
+++ b/examples-testing/examples/webgpu_tsl_coffee_smoke.ts
@@ -1,4 +1,4 @@
Expand All @@ -15370,7 +15370,7 @@ index 5c2c8ea4..2b11fc73 100644
import {
mix,
mul,
@@ -17,7 +17,7 @@ import {
@@ -18,7 +18,7 @@ import {
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';

Expand All @@ -15379,7 +15379,7 @@ index 5c2c8ea4..2b11fc73 100644

init();

@@ -35,7 +35,9 @@ function init() {
@@ -36,7 +36,9 @@ function init() {
// baked model

gltfLoader.load('./models/gltf/coffeeMug.glb', gltf => {
Expand All @@ -15391,16 +15391,16 @@ index 5c2c8ea4..2b11fc73 100644
});

diff --git a/examples-testing/examples/webgpu_tsl_vfx_flames.ts b/examples-testing/examples/webgpu_tsl_vfx_flames.ts
index a9110fa8..42bf54e3 100644
index 6e72392a..b04fdc77 100644
--- a/examples-testing/examples/webgpu_tsl_vfx_flames.ts
+++ b/examples-testing/examples/webgpu_tsl_vfx_flames.ts
@@ -1,4 +1,4 @@
-import * as THREE from 'three';
+import * as THREE from 'three/webgpu';
import {
PI2,
spherizeUV,
@@ -17,7 +17,15 @@ import {
oneMinus,
@@ -18,7 +18,15 @@ import {

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

Expand All @@ -15417,7 +15417,7 @@ index a9110fa8..42bf54e3 100644

init();

@@ -37,11 +45,11 @@ function init() {
@@ -38,11 +46,11 @@ function init() {

// gradient canvas

Expand Down

0 comments on commit a778725

Please sign in to comment.