유니티 - 2d Raymarched Smoke



유니티 - 2d Raymarched Smoke

금별 5 2,616 2019.10.26 09:49

2d Raymarched Smoke

Start with a texture as opacity. Here I'm using a flat splat texture to better show the offset layering.

Take a copy of this, offset it by the LightDir in tangent space by adding to the UVs. Do this again with an increased offset and then layer them together. This is the shadow side. 

Now take another two copies of the texture, again offset by the LightDir in tangent space, this time by subtracting from the UVs instead of adding. Increase the offset and layer those together.

This is the lit side.

We can use the Dot Product of the ViewDir and LightDir to Lerp blend between the negated shadow side and the lit side.

Perhaps use a smoothstep to ease the transition.

Now just chuck out that flat shaded splat texture, and pop in a soft smoky texture with faded sides.  

Multiply it by the Light Colour, and if you’re feeling extra fancy, use the Dot Product of the ViewDir and LightDir to add in some fake SubsurfaceScattering as the light travels behind the smoke.  

 

Comments

커피맥주 2020.02.14 19:09
링크 깨졌네요 흑흑
금별 2020.02.16 19:20
이런 ㅠㅠ
금별 2020.02.16 20:16
수정했습니다.
커피맥주 2020.02.18 12:45
커피맥주 2020.09.15 02:57
오랜만에 다시 보러 왔더니 또 링크가 깨졌네요 ㅠㅠ

번호 포토 분류 제목 글쓴이 날짜 조회
1131 언리얼4 언리얼/후디니 - 머트리얼로 제작해보는 그록로고(블랙홀느낌) 금별 03.03 942
1130 언리얼4 언리얼/블랜더 - 귀멸의 칼날 느낌의 번개연출 표현제작과정(한글자막) 금별 03.03 891
1129 언리얼4 언리얼 - 포스트 프로세싱 머티리얼(방사형 블러) 제작과정(한글자막) 금별 03.03 855
1128 유니티 유니티 셰이더 그래프 - 간단한 Stylized 화염 트레일 제작과정(한글자막) 금별 03.03 1057
1127 언리얼4 언리얼5 - 문자열(string) VFX를 활용한 커스텀 이벤트 제작과정(한글자막) 금별 03.03 832
1126 유니티 유니티 UI 앰플리파이 셰이더 - 패턴에 빛 스와핑 효과 제작예제 금별 02.21 1118
1125 언리얼4 언리얼 UMG - 비디오 올리고 비디오 스타일 처리수행과정 금별 02.21 967
1124 언리얼4 언리얼5 - 허공에 찢어지며 생기는 포털 제작과정(한글자막) 금별 02.21 1064
1123 언리얼4 언리얼 - 그래디언트를 매끄럽게 혼합해 텍스쳐 변형하는 간단팁 금별 02.21 969
1122 3D 3D - 방사형 충격파 간단제작과정 금별 02.21 1039
1121 언리얼4 언리얼 - 흡수성 머트리얼 간단제작과정 금별 02.21 864
1120 유니티 유니티 - 볼류메트릭 메쉬 VFX 모델링 머드번 활용예제 금별 02.21 1071
1119 언리얼4 언리얼 - 카메라 연출관련 플러그인 Black Eye Cameras Overview 튜토리얼(한글자막) 금별 02.21 870
1118 언리얼4 언리얼5 - 스켈레탈 메시에 대한 Interactive Wetness Mask & Dripping Effects 제작과정(한글자막) 금별 02.21 875
1117 3D 후디니 - 피어나는 꽃봉오리 제작과정(한글자막) 금별 02.21 1014
1116 언리얼4 언리얼 - 나이아가라 간단한 촉수효과 제작과정(한글자막) 금별 02.21 954
1115 언리얼4 게임이펙트의 모든것! 졸업생 "김연아" 인터뷰_01 금별 02.19 873
1114 언리얼4 언리얼5 - 푸른 아우라 폭발 레이어별 제작간단예제 금별 02.15 930
1113 언리얼4 언리얼5 - 카오스 시스템 시작 가이드(한글자막) 금별 02.15 925
1112 언리얼4 린반Live - 언리얼 이펙트 클래식 리뷰하기1 금별 02.15 874
1111 언리얼4 언리얼5 - 시네마틱을 위한 총 머즐플래시 이펙트 제작과정(한글자막) 금별 02.15 1001
1110 언리얼4 언리얼 - UV활용 가짜 구형(스피어) 벌지 셰이더 노드예제 금별 02.15 906

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand