Combining parallax occlusion mapping with shadow mapping

by racz16   Last Updated June 03, 2017 00:13 AM

I've implemented shadow mapping and parallax occlusion mapping and both of them are working well, but I can't combine them. My problem is that if a model casts shadow to another model which uses POM, the shadow follows the original shape of the model and not the virtual shape constructed by the POM. This is pretty obvious because when I render the shadow map I render the original model to the depth map, and when I render the scene by the Blinn-Phong shader, I don't use any offset when I sample the shadow map, and I use the original model's fragment position. Do you know any solutions to this problem?

Related Questions

Opengl - Shadow mapping issue

Updated September 12, 2016 08:05 AM

Shadow map sample is weird

Updated April 12, 2017 18:13 PM

OpenGL Shadowmaps Limit

Updated January 11, 2018 06:13 AM