diff --git a/examples/files.json b/examples/files.json index 287f2130bdd0f3..8b87189ae72dae 100644 --- a/examples/files.json +++ b/examples/files.json @@ -304,6 +304,9 @@ "webgpu_centroid_sampling", "webgpu_clearcoat", "webgpu_clipping", + "webgpu_clipping_advanced", + "webgpu_clipping_hardware", + "webgpu_clipping_intersection", "webgpu_compute_audio", "webgpu_compute_birds", "webgpu_compute_cloth", diff --git a/examples/screenshots/webgpu_clipping_advanced.jpg b/examples/screenshots/webgpu_clipping_advanced.jpg new file mode 100644 index 00000000000000..d108b19da7d58f Binary files /dev/null and b/examples/screenshots/webgpu_clipping_advanced.jpg differ diff --git a/examples/screenshots/webgpu_clipping_hardware.jpg b/examples/screenshots/webgpu_clipping_hardware.jpg new file mode 100644 index 00000000000000..b79f658c802c9d Binary files /dev/null and b/examples/screenshots/webgpu_clipping_hardware.jpg differ diff --git a/examples/screenshots/webgpu_clipping_intersection.jpg b/examples/screenshots/webgpu_clipping_intersection.jpg new file mode 100644 index 00000000000000..292521d4a5e2e2 Binary files /dev/null and b/examples/screenshots/webgpu_clipping_intersection.jpg differ diff --git a/examples/tags.json b/examples/tags.json index a598a395061dd1..dc570a7501e5d6 100644 --- a/examples/tags.json +++ b/examples/tags.json @@ -119,6 +119,8 @@ "webxr_xr_ballshooter": [ "physics" ], "webgpu_clearcoat": [ "anisotropy" ], "webgpu_clipping": [ "solid" ], + "webgpu_clipping_hardware": ["solid"], + "webgpu_clipping_intersection": ["solid"], "webgpu_compute_audio": [ "gpgpu" ], "webgpu_compute_birds": [ "gpgpu" ], "webgpu_compute_geometry": [ "gpgpu" ], diff --git a/examples/webgpu_clipping_advanced.html b/examples/webgpu_clipping_advanced.html new file mode 100644 index 00000000000000..16b49445f0b80b --- /dev/null +++ b/examples/webgpu_clipping_advanced.html @@ -0,0 +1,438 @@ + + + + three.js webgl - clipping planes - advanced + + + + + + + + + + + \ No newline at end of file diff --git a/examples/webgpu_clipping_hardware.html b/examples/webgpu_clipping_hardware.html new file mode 100644 index 00000000000000..3576ccd34bd691 --- /dev/null +++ b/examples/webgpu_clipping_hardware.html @@ -0,0 +1,185 @@ + + + + three.js WebGL 2 - clip cull distance + + + + + + +
+ three.js - vertex shader clipping via + WEBGL_clip_cull_distance + or clip-distances + +
+ + + + + + \ No newline at end of file diff --git a/examples/webgpu_clipping_intersection.html b/examples/webgpu_clipping_intersection.html new file mode 100644 index 00000000000000..9ae8aaa6d518b5 --- /dev/null +++ b/examples/webgpu_clipping_intersection.html @@ -0,0 +1,166 @@ + + + + three.js webgl - clipIntersection + + + + + + + + + + +