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

Add grass again #293

Merged
merged 6 commits into from
Feb 12, 2024
Merged

Add grass again #293

merged 6 commits into from
Feb 12, 2024

Conversation

EmiOnGit
Copy link
Contributor

Adds a patch of grass using the warbler_grass crate :)

The 'controversial' decisions I made:

  • The 'Ground' mesh is used as a base for the grass field (only checked once).
  • A low-res density texture is used for marking the points, where grass should be found. (assets/textures/grass_density_map.png).
  • The density texture is not hot swappable at runtime to preserve a bit of performance.
  • The grass is configured to be brownish at the bottom to resemble the ground a bit more.
  • The grass is a bit higher than usual since I think it looks a bit odd if the grass has the exact same height as the player.

@janhohenheim
Copy link
Owner

Thanks a bunch :D I'm so happy about seeing those blades of grass again, haha
Only issue I have is that this makes the ground "glossy" by removing the hardcoded reflectance. Let me fix that real quick.

@janhohenheim janhohenheim merged commit c46b08a into janhohenheim:main Feb 12, 2024
2 checks passed
@EmiOnGit
Copy link
Contributor Author

Oh I didn't notice that I made the ground more glossy. Good catch! :)

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