유니티 쉐이더 팁 - 유령 트레일효과 SIN WAVE TRAIL



유니티 쉐이더 팁 - 유령 트레일효과 SIN WAVE TRAIL

금별 0 5,732 2019.08.02 19:53

 

 

It was done with just a particle system, and it is particle mesh render within trail component. The issue of the effect is how to create three different swing trail on a single plane.

The shader is made by Amplify shader editor 1.5.8. It also could do it with shader graph in Unity.

大圖Full Size



Texture made by Substance designer 2018

R:  for trail 1.
G:  for trail 2.
B:  the noise of distortion.
A:  the noise for dissolve.

大圖Full Size
 

Shader Breakdown of shader


1.基礎Shader屬性設定 Setting property 
2.Shader大圖中Sin01的區塊為擺動UV的產生,Sin02及03僅是重複01計算後,改變其波長頻率時間等來製作三種不同擺幅 。
The Sin01 block is working for the motion of V coordinate. Sin02 and Sin03 block are just duplicate it, and modify the value of wavelength, amplitude and time to do the variety of motion.

 

 a. First, create the sin node and add with time.

 

 

b. V coordinate remap to 1~ -1, and then add to Sin. You can fin the Sin wave animation. 

 

c. As the result, value goes to be more than one. It has to remap to 1~ -1.

 

d. Multiply U coordinate to increase the swing animation from left to right (0~1) and add to the origin V coordinate. 

 

e. Append swing V and origin U to get the swing UV for trail map.

 

 

3. In order to make the trail animation to be more variety, need to add some distortion into UV. The Flow UV block work with two motion from B channel of texture and multiply the parameter value to control the strength of distortion. Multiply U coordinate to keep shape in the start position (left) and more distortion to end (right).

 

 

 

4. Create the edge mask within UV coordinate to clean the shape animation over the edge.

 

 

5. Dissolve block is doing the dissolve in the end of trail.

 

 

a. Add Flow UV to make it naturally.

 

b. To add frac node, it will let the value from 0~1, even it is going to be huge from time. But the texture have to be seamless. In this way, it could maintain the motion value and some performance.

 

c. Modify the ramp (0~1) to increase effect of dissolve. 

 

6. Lerp within U coordinate to create two color from start (left) to end (right). 

 

 

 Shader的部分就到此完成
Done

 

粒子系統設置 particle setting


The render is mesh particle and add the trail component. You can find the detail setting in the below picture.

 

It is the breakdown of the Sin Wave effect.

 

Comments


번호 포토 분류 제목 글쓴이 날짜 조회
702 유니티 유니티 - 카툰형 토네이도 제작과정 금별 01.13 235
701 유니티 유니티/후디니 - 카툰형 번개/바닥크랙,파편 이펙트 제작과정 금별 01.13 260
700 유니티 유니티 - 카툰 폭파 이펙트 제작과정 금별 01.11 340
699 언리얼4 언리얼 - 개인작/포트폴리오 영상 녹화방법 금별 01.10 205
698 2D 애프터이펙트 - 카툰 라이트닝 효과 제작과정(일본어/AI자막) 금별 01.10 189
697 2D 애프터이펙트 - 카툰 먼지 웨이브 효과 제작과정(일본어/AI한글자막) 금별 01.10 192
696 언리얼4 언리얼5 - Valorant Spike Explosion 제작과정 금별 01.08 194
695 언리얼4 언리얼5 - 블랙 매직 빔형태 캐논볼 제작튜토리얼 금별 01.08 303
694 언리얼4 언리얼 - 워리어 검기/휠윈드 트레일효과 제작과정(중국어/AI자막) 금별 01.05 337
693 언리얼4 언리얼 - 홀리 라이트 버프효과 제작과정(중국어/AI자막) 금별 01.05 225
692 유니티 유니티 앰플리파이 셰이더 - 색수차 활용 글리치 효과 제작튜토리얼 금별 01.03 236
691 언리얼4 언리얼엔진 셰이더 최적화(번역자료) 금별 2023.12.30 230
690 언리얼4 언리얼/3DsMax - 레이파이어 Export (부서지는메시 언리얼엔진에 넣기 || 한국어) 금별 2023.12.30 173
689 언리얼4 언리얼 - 시퀀서 기본 사용법(한국어) 금별 2023.12.30 179
688 언리얼4 언리얼 - 파라곤 캐릭터 조작 설정 금별 2023.12.30 157
687 언리얼4 언리얼 레벨관련 - 언리얼 배경 설정 (퀵셀 브릿지로 배경 꾸미기) 금별 2023.12.30 170
686 3D 3dsMax - 토네이도 메시 제작과정(중국어/AI한글자막) 금별 2023.12.27 290
685 3D 3dsMax - 나선형 아우라 메시 제작 금별 2023.12.27 220
684 3D 3dsMax - UI 경계에 활용되는 메시 제작과정 금별 2023.12.27 281
683 3D 3DsMax - 쉴드 메시 모델 제작방법(중국어/AI자막포함) 금별 2023.12.27 161
682 2D 포토샵 - 게임이펙트 Tornado 에 쓰인 텍스처 그리기 금별 2023.12.26 208
681 유니티 유니티 앰플리파이 셰이더 - 똥파리 셰이더 옷 제작과정 금별 2023.12.23 248

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand