Skip to content

Conversation

@querielo
Copy link
Contributor

@querielo querielo commented Nov 13, 2025

This pull request adds a new WebGPU example demonstrating contact shadows.

Example: https://rawcdn.githack.com/querielo/three.js/kirill/webgpu-contact-shadow/examples/webgpu_shadow_contact.html

webgpu_shadow_contact

Copilot AI review requested due to automatic review settings November 13, 2025 12:41
Copilot finished reviewing on behalf of querielo November 13, 2025 12:44
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request adds a new WebGPU example demonstrating contact shadows with Gaussian blur for smooth shadow rendering. The example port from the existing WebGL contact shadows example to use WebGPU's node-based material system with TSL (Three.js Shading Language).

Key Changes

  • Implemented contact shadows using WebGPU's node material system and TSL's gaussianBlur function
  • Uses uniform nodes for dynamic control of shadow parameters (blur, darkness, opacity)
  • Added Inspector-based GUI for real-time parameter adjustment

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
examples/webgpu_shadow_contact.html New WebGPU example implementing contact shadows with Gaussian blur using node materials and TSL
examples/files.json Added new example to the files list in alphabetical order
examples/tags.json Tagged the example with "shadow", "soft", and "tsl" for categorization
examples/screenshots/webgpu_shadow_contact.jpg Screenshot for the example thumbnail

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sunag sunag added this to the r182 milestone Nov 13, 2025
@sunag sunag changed the title Add WebGPU Contact Shadows Example Examples: Add WebGPU Contact Shadows Nov 13, 2025
@sunag sunag merged commit ed0e71f into mrdoob:dev Nov 13, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants