Skip to content

Commit

Permalink
TSL: Improve fog approach. (#1443)
Browse files Browse the repository at this point in the history
* TSL: Improve fog approach.

* Update three.js

* FogNode?

* Fix

* Add src

* Update patch and delete src

* Update declarations

* Add examples

* Update patch and delete examples
  • Loading branch information
Methuselah96 authored Dec 15, 2024
1 parent ccc54f8 commit 3fc27b7
Show file tree
Hide file tree
Showing 13 changed files with 148 additions and 182 deletions.
4 changes: 2 additions & 2 deletions examples-testing/changes.patch
Original file line number Diff line number Diff line change
Expand Up @@ -13442,13 +13442,13 @@ index 3331adc8..17d73367 100644

object.position.y = 0.8;
diff --git a/examples-testing/examples/webgpu_custom_fog_background.ts b/examples-testing/examples/webgpu_custom_fog_background.ts
index 4a2e6c80..22eeb6d0 100644
index baca16cb..b01cd750 100644
--- a/examples-testing/examples/webgpu_custom_fog_background.ts
+++ b/examples-testing/examples/webgpu_custom_fog_background.ts
@@ -1,4 +1,4 @@
-import * as THREE from 'three';
+import * as THREE from 'three/webgpu';
import { pass, color, rangeFog } from 'three/tsl';
import { pass, color, rangeFogFactor } from 'three/tsl';

import { RGBELoader } from 'three/addons/loaders/RGBELoader.js';
@@ -6,8 +6,8 @@ import { RGBELoader } from 'three/addons/loaders/RGBELoader.js';
Expand Down
Loading

0 comments on commit 3fc27b7

Please sign in to comment.