Unity HDRP Water Shader Update 0

Поділитися
Вставка
  • Опубліковано 22 лип 2023
  • Actually, I want to showcase these things as small trailers with music and proper scene that showing the interaction between the environment etc. but currently don't have time and every asset that I need for that. Now I'm working on a terrain shader with dynamic weather system. Maybe after finishing that can be able to combine all together and release as a little playable demo or trailer like mentioned.
    Rewrite the whole thing and implemented jakobian foam. Also chromatic aberration added for transparent parts. SSS is not working because I didn't be able to decide yet which data is best to use as a SSS mask. Btw, Gerstner waves have an aspect of creating waves with soft tops as the wave count increases even if you max out the steepness parameter to 1. The trick used here to be able to get sharp waves is using a multiplier for world space position and then adjusting steepness value to avoid overlapping tops. I get this idea from Dokipen's channel. One thing needs to be taken care off with this method is that If I'm not wrong this method tiles the waves so if your maximum wave length is let's say 120 and using a world space multiplier of 6 your maximum wave length value will be 20 at the scene. Which means waves will be tiled per 20 engine units instead of 120. To avoid that wave length parameter can be multiplied with the WS multiplier before passing into the gerstner calculations.
    Second thing that I want to mention is about wave profiles: Method used for creating wave lengths and heights for this shader is defining the maximum values for these two and then dividing them by a number until the wave count is reached for each wave. The thing caught my attention is that values closer to 1 creates this kind of patterns like in the video and values closer to 2 creates a profile like FFT does. Problem is, value of 2 reaches high frequency waves to quickly which mesh can not handle due to low resolution and looks ugly and needs to be used with high wave length values.
  • Ігри

КОМЕНТАРІ •