EmiOnGit / warbler_grass

A bevy plugin for creating 3d grass in your game
Apache License 2.0
120 stars 11 forks source link

Respect prepasses instead of crashing #87

Closed EmiOnGit closed 1 month ago

EmiOnGit commented 1 month ago

Fixes #84 Turns out all prepasses had problems with the current implementation. If any prepass was attached to a view object, the project crashed while trying to render grass. This includes DepthPrepass, NormalPrepass, MotionVectorPrepass, DeferredPrepass.

The new implementation doesn't crash the app but also doesn't draw to any Prepass as of now. Writing to the depth or normal buffer would make rendering of the grass unproportionally expensive AFAIK and isn't common practice in other vegetation pipelines. I am open to merge a optional solution if someone were to make a PR