Home Unreal Engine

POM with shadows?

greentooth
Offline / Send Message
C86G greentooth
Hello.

I´m trying out parallax occlusion mapping and so far it works nicely. The one thing I am missing is shadows.
Let´s say I have a generic cobblestone material and them POM effect really works well, but the stones don´t cast shadows.
Google says I should multiply the shadow output of the POM node with my base color. But that does nothing.

I downlaoded a fixed material function for POM and activated self shadowing, but that only makes the whole mesh (a simple test cube) black.

Is there a way to get shadows working? I´m in UE4.26.


Thanks : )


Replies

  • zora_c
    Options
    Offline / Send Message
    Looks like your mesh is black because you're not supplying the POM node with a light vector input, If you load up the Epic POM content example map, and take a look at the shadow example, you can see how the light vector input works. They use a custom light BP which updates a material parameter collection, which in turn supplies the POM node with the correct light vector. Also your 'render shadows' POM input should be 'true'.
Sign In or Register to comment.