Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebGPURenderer: implement ClippingGroup object #1389

Merged
merged 8 commits into from
Dec 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 2 additions & 20 deletions examples-testing/changes.patch
Original file line number Diff line number Diff line change
Expand Up @@ -13426,7 +13426,7 @@ index 0d5b70a2..0c147364 100644
init();

diff --git a/examples-testing/examples/webgpu_clipping.ts b/examples-testing/examples/webgpu_clipping.ts
index e57a7e96..cd6362e3 100644
index 3331adc8..17d73367 100644
--- a/examples-testing/examples/webgpu_clipping.ts
+++ b/examples-testing/examples/webgpu_clipping.ts
@@ -1,4 +1,4 @@
Expand All @@ -13449,25 +13449,7 @@ index e57a7e96..cd6362e3 100644

init();

@@ -101,7 +106,7 @@ function init() {

// ***** Clipping setup (renderer): *****
const globalPlanes = [globalPlane];
- const Empty = Object.freeze([]);
+ const Empty: readonly THREE.Plane[] = Object.freeze([]);

renderer.clippingPlanes = Empty; // GUI sets it to globalPlanes
renderer.localClippingEnabled = true;
@@ -120,7 +125,7 @@ function init() {
folderLocal = gui.addFolder('Local Clipping'),
propsLocal = {
get Enabled() {
- return renderer.localClippingEnabled;
+ return renderer.localClippingEnabled!;
},
set Enabled(v) {
renderer.localClippingEnabled = v;
@@ -193,7 +198,7 @@ function onWindowResize() {
@@ -196,7 +201,7 @@ function onWindowResize() {
renderer.setSize(window.innerWidth, window.innerHeight);
}

Expand Down
Loading
Loading