Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

float2 n,q,u=float2(i.uv-.5); float d = dot(u,u),s=9,t=_Time.y,o,j; for (float2x2 m=RM2D(5);j++<16;) { u = mul(m,u);n = mul(m,n); q = u*s+t*4+sin(t*4-d*6)*0.8+j+n; o += dot(cos(q)/s, float2(2,2)); n -= sin(q); s *= 1.2; } return o; #Unity3D #GLSL #VFXFriday

626,841 görüntüleme • 3 yıl önce •via X (Twitter)

10 Yorum

Mirza Beig profil fotoğrafı
Mirza Beig3 yıl önce

It's this FBM converted to HLSL for Unity. A small block of code that produces an incredible pattern. 😍 2D rotation matrix: float2x2 RM2D(float a) { return float2x2(cos(a), sin(a), -sin(a), cos(a)); } Procedural loading screen animations, anyone?

Van Aarde Krynauw profil fotoğrafı
Van Aarde Krynauw3 yıl önce

Wow, this is incredible! My brain is not allowing me to believe that this simple piece of code can produce that ... I will have to try it and prove it wrong!

Mirza Beig profil fotoğrafı
Mirza Beig3 yıl önce

The author linked to the code you can test on your browser in real time. Try it! Play with the parameters.

Long Story Short Games profil fotoğrafı
Long Story Short Games3 yıl önce

here is my adaptation for the same original shader with #threejs 🧬

Ken C profil fotoğrafı
Ken C3 yıl önce

Reminds me of StarCraft Zerg eggs incubating, this is awesome!

Kynan Pearson profil fotoğrafı
Kynan Pearson3 yıl önce

Incredible. I love this so much. Crazy how much variety you can get tweaking this too

James Taylor profil fotoğrafı
James Taylor3 yıl önce

vero noice

Vista Larga Games | ᯅ profil fotoğrafı
Vista Larga Games | ᯅ3 yıl önce

My ass after chipotle

Anthony profil fotoğrafı
Anthony3 yıl önce

this is awesome! may I ask how you generate the normals from the fractal value?

Mirza Beig profil fotoğrafı
Mirza Beig3 yıl önce

I don't use SG, but this should be similar enough to ASE.

Benzer Videolar