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

Feat: add support for advanced lighting and shadows #13

Merged
merged 12 commits into from
Apr 1, 2024
Merged

Conversation

piellardj
Copy link
Member

@piellardj piellardj commented Apr 1, 2024

This PR:

  • adds support for cast shadows (casting, receiving and self-shadowing)
  • gives the Terrain a modified MeshPhongShader, which means that the Terrain now behaves as any other mesh in the scene: it reacts to scene lights, has support for specularity etc.
  • ships the sourcemaps in the npm package, which might help debugging

Here is an illustration of the terrain casting and receiving shadows:
image

@piellardj piellardj requested a review from Sceat April 1, 2024 13:15
@piellardj piellardj self-assigned this Apr 1, 2024
@piellardj piellardj changed the title Feat/lighting Feat: add support for advanced lighting and shadows Apr 1, 2024
@Sceat Sceat merged commit 2ca9f82 into master Apr 1, 2024
2 checks passed
@Sceat Sceat deleted the feat/lighting branch April 1, 2024 16:08
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