Jump to content

[SOLVED] Highlight / draw ridge edges of terrain


photo

Recommended Posts

Hi,

How would you highlight / draw ridge edges of terrain global and object landscape?

image.png.c3baf1e979fd525a8aa2ac1dc679d15c.png

For example a screen space shader (or scriptable material) post filter sobel but instead of color based, normal / z based..

image.png.6820d5bf096d46e92b7768b7f051299b.png

image.png.3de2a65e5d2f6d07ac9790f910143a01.png

 

Would you see smthg simple to do?

Kind regards,
Charles

Link to comment

Hi Charles,

Should be easy to add, just a custom sobel filter + depth filtering.

You can find in attachment very draft attempt to do this:

image.pngimage.png

So the full shader here: sobel.basemat (the main magic in lines 53-54) and you also can somehow use normal as an addition (all commented lines).

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to comment

Hi Silent,

Simply excellent, thanks!

Stephane helped to make proper use of it and result is quite convincing ;-)

image.png.8d9ff41bda9a846779637d5156f63270.png

Kind regards,
Charles

  • Like 2
Link to comment
  • silent changed the title to [SOLVED] Highlight / draw ridge edges of terrain
×
×
  • Create New...