cryscan/bevy-hikari

Transparent textures looks black

Opened this issue · 2 comments

With the plugin:
изображение
Without:
изображение
Model:
simple_bush.zip

trsh commented

I think for now its diffuse only. Correct me if I am wrong. This plugin is very WIP and for path tracing enthusiasts, and experiments.

The current ray tracing routine only considers geometry but not surface attributes. It is easy to render alpha-masked meshes correctly in the prepass (onto the G-Buffer) so their shape appear correct, but the both direct and indirect lighting wouldn't know this. In order to make that all correct, additional rays may be traced if the surface is transparent.