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: Shadow fixes #29991

Merged
merged 4 commits into from
Nov 29, 2024
Merged

WebGPURenderer: Shadow fixes #29991

merged 4 commits into from
Nov 29, 2024

Conversation

sunag
Copy link
Collaborator

@sunag sunag commented Nov 29, 2024

Related issue: #29942

Description

This PR certifies that examples like webgl_shadowmap_pointlight work in WebGPURenderer.

  • alphaTest and alphaMap were not working in the shadows.
  • PointLight shadow was not working with more than one shadow.
  • Force MRT null during shadow rendering.

image

@sunag sunag marked this pull request as ready for review November 29, 2024 02:24
@sunag sunag added this to the r171 milestone Nov 29, 2024
Copy link

github-actions bot commented Nov 29, 2024

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 339.14
78.99
339.14
78.99
+0 B
+0 B
WebGPU 484.46
134.42
484.61
134.47
+148 B
+53 B
WebGPU Nodes 483.93
134.32
484.08
134.37
+148 B
+56 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Before After Diff
WebGL 464.62
111.98
464.62
111.98
+0 B
+0 B
WebGPU 553.23
149.71
553.37
149.76
+148 B
+52 B
WebGPU Nodes 509.11
139.43
509.25
139.47
+148 B
+38 B

@sunag sunag merged commit f91fbc3 into mrdoob:dev Nov 29, 2024
12 checks passed
@sunag sunag deleted the dev-pointshadow-rev branch November 29, 2024 04:15
cmhhelgeson pushed a commit to cmhhelgeson/three.js that referenced this pull request Dec 5, 2024
* shadow revision

* cleanup

* cleanup

* rev
sunag added a commit to sunag/three.js that referenced this pull request Dec 7, 2024
sunag added a commit to sunag/three.js that referenced this pull request Dec 7, 2024
sunag added a commit that referenced this pull request Dec 7, 2024
* fix getNodeType()

* Revert "WebGPURenderer: Shadow fixes (#29991)"

This reverts commit f91fbc3.

* Revert "WebGPURenderer: Add `SpotLight.map` support (#29989)"

This reverts commit e2e04d3.

* cleanup

* Reapply "WebGPURenderer: Add `SpotLight.map` support (#29989)"

This reverts commit 9a2e6c2.

* Reapply "WebGPURenderer: Shadow fixes (#29991)"

This reverts commit 50c6e14.
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.

1 participant