Lales.Charles Posted September 8, 2021 Share Posted September 8, 2021 Hi, How would you highlight / draw ridge edges of terrain global and object landscape? For example a screen space shader (or scriptable material) post filter sobel but instead of color based, normal / z based.. Would you see smthg simple to do? Kind regards, Charles Link to comment
silent Posted September 9, 2021 Share Posted September 9, 2021 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: 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: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Lales.Charles Posted September 9, 2021 Author Share Posted September 9, 2021 Hi Silent, Simply excellent, thanks! Stephane helped to make proper use of it and result is quite convincing ;-) Kind regards, Charles 2 Link to comment
Recommended Posts