Unity Development - Implementing Cube Waves Matrix Waves

Effect

insert image description here
insert image description here

Implementation principle

(1) Wave motion
The value of the up and down telescopic height is obtained by mapping the sine function, and the dynamic change will present a wave effect starting from the center of the matrix.

(2) The color changes
the height value of the expansion and contraction to change the hue (H in HSV), but the corresponding H value is also calculated by a first-order function (y=k(xa)), because the range of H is 0-360 , the coefficient in the linear function is determined by the maximum height value and the minimum height value.

Guess you like

Origin blog.csdn.net/weixin_42358083/article/details/122773075