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
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