Skip to content

Commit

Permalink
Update patch and delete examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 committed Sep 23, 2024
1 parent 01e4f52 commit 20f2f12
Show file tree
Hide file tree
Showing 369 changed files with 30 additions and 56,172 deletions.
31 changes: 30 additions & 1 deletion examples-testing/changes.patch
Original file line number Diff line number Diff line change
Expand Up @@ -5944,7 +5944,7 @@ index 58f021e6..1427cce4 100644
prefix + 'px' + postfix,
prefix + 'nx' + postfix,
diff --git a/examples-testing/examples/webgl_lightprobe_cubecamera.ts b/examples-testing/examples/webgl_lightprobe_cubecamera.ts
index c714d297..ccf95e09 100644
index 65425d4e..a9a0533e 100644
--- a/examples-testing/examples/webgl_lightprobe_cubecamera.ts
+++ b/examples-testing/examples/webgl_lightprobe_cubecamera.ts
@@ -4,9 +4,9 @@ import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
Expand Down Expand Up @@ -13653,6 +13653,35 @@ index 66f9ffcb..0bcfb599 100644

// envmap
- const genCubeUrls = function (prefix, postfix) {
+ const genCubeUrls = function (prefix: string, postfix: string) {
return [
prefix + 'px' + postfix,
prefix + 'nx' + postfix,
diff --git a/examples-testing/examples/webgpu_lightprobe_cubecamera.ts b/examples-testing/examples/webgpu_lightprobe_cubecamera.ts
index 612fade7..b7436e09 100644
--- a/examples-testing/examples/webgpu_lightprobe_cubecamera.ts
+++ b/examples-testing/examples/webgpu_lightprobe_cubecamera.ts
@@ -1,12 +1,12 @@
-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';
import { LightProbeGenerator } from 'three/addons/lights/LightProbeGenerator.js';

-let renderer, scene, camera, cubeCamera;
+let renderer: THREE.WebGPURenderer, scene: THREE.Scene, camera: THREE.PerspectiveCamera, cubeCamera: THREE.CubeCamera;

-let lightProbe;
+let lightProbe: THREE.LightProbe;

init();

@@ -40,7 +40,7 @@ function init() {
scene.add(lightProbe);

// envmap
- const genCubeUrls = function (prefix, postfix) {
+ const genCubeUrls = function (prefix: string, postfix: string) {
return [
prefix + 'px' + postfix,
Expand Down
186 changes: 0 additions & 186 deletions examples-testing/examples/css2d_label.ts

This file was deleted.

Loading

0 comments on commit 20f2f12

Please sign in to comment.