hi list and developers
after reading “all” the posts, wikis etc in the regard of rendering 3d objects with alpha-channels in the shader i put my question here…
is there no way to have something like a cuout-shader functionality in touch, where the shaows are just created from the visible part of the object?
now the shadows are always used from the whole object and not just the visible part…
am i missing something?
i was reding about things like shadowmapping, but glsl is (right now) to high for me…
thank you very much for any advice!
best luca
This might be something that gets some attention after the port to Vulcan is finished, but at present yes I think to do this, the lights depth buffer which is used to create the shadows would need to be combined with the alpha’d geometry somehow in light space. I’m not quite sure how this is done in other engines, but I think it’s a rather expensive effect that has to be applied very selectively even there.
I could be wrong though, I haven’t done any research into this topic just thinking out loud here.
thank you for the fast answer!
i just know in unity you have an unlit shader with cutout option and it works with shadows… dont know how thy do…
hmm, thats a bummer… have to find a workaround somehow… tahnk you!
luca
1 Like