Dbuffer to Vertex shader

Hello Everyone !

I am trying to create a body damage system (see Flesh/dead space system), trying to replicate it using decals dbuffer as well as the World Position Offset, But, i am facing a roadblock as the dbuffer is pixel side and the WPO is for the vertex.

Do you have any idea how to bypass that ( if it’s even possible), kinda like the VS > PS interpolator .

Maybe i should head toward another system like render target and so on ?

Thank you :slight_smile:

Bump

I dont THINK… you would use world position offset for this, I think you would spawn the decal at the hit location, use the xvector from the normal from the hit for the rotation, keep dbuffer on, but instead of wpo just use a normal map for the 3d effect