keijiro / ShadowDrawer

Shadow matte shader for Unity
368 stars 54 forks source link

HDRP Support #10

Open Andy-Roger opened 5 years ago

Andy-Roger commented 5 years ago

Do you know how to make this shader work with the HDRP?

keijiro commented 5 years ago

This shader only supports the forward lighting method, so if you're going to use HDRP with a forward-only configuration, it might be possible to adopt the shader to it.

In my opinion, forward-only HDRP is not a common option for developers. Its usage is pretty limited. That's why I'm not very motivated with the idea.

What do you think about it? Is forward-only HDRP an allowable option for you?

Andy-Roger commented 5 years ago

I am working on a project that uses Unity in HDRP to render objects over a camera feed to make AR, we mainly use deferred rendering.

We may be able to render the shadows with another camera that uses forward that only renders shadows. Then render the shadows to a texture with alpha transparency behind the texture that renders the objects.

In the scenario forward rendering could be an option, but only on the camera that renders shadows. Then composite that with the camera that uses deferred rendering.

keijiro commented 5 years ago

The approach you suggested makes sense. Thank you for the suggestion. I'll consider it.

FutureCake commented 4 years ago

@keijiro do you have any news regarding the integration of the HDRP in this shader? Would be awesome if you did.

keijiro commented 4 years ago

@FutureCake Unfortunately, no.

jorisdejong commented 3 years ago

ShadowMatte is now a built-in option for unlit shader graphs in HDRP. More info here: https://forum.unity.com/threads/matte-shader-only-shadows-in-hdrp.740684/