Home Unreal Engine

Landscape shader problem

KirilZangagolev
polycounter lvl 2
Offline / Send Message
KirilZangagolev polycounter lvl 2
Hi guys I followed this tutorial: https://www.youtube.com/watch?v=NAJhppttJgI and I want to add distance scaling on all the textures using pixel depth fade. I have this mask 
When I put the clamp output in a lerp to go between the small uv and large uv scale texture it gives this error.

it says that the pixel depth is invalid used in hull/domain shader input.
Can some please explain how to fix this?

Replies

  • Obscura
    Offline / Send Message
    Obscura grand marshal polycounter
    This can be fixed by not using the pixel depth node :P 

    You can recreate the functionality of that node using the following math:
    distance(world position, camera position);

    This works with hull/domain shader too.
Sign In or Register to comment.