유니티 - 2d Raymarched Smoke



유니티 - 2d Raymarched Smoke

금별 5 2,867 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
오랜만에 다시 보러 왔더니 또 링크가 깨졌네요 ㅠㅠ

번호 포토 분류 제목 글쓴이 날짜 조회
1148 언리얼4 언리얼 - 페이지 넘긴 효과 머트리얼 구현과정 금별 04.29 1120
1147 언리얼4 언리얼 - 간단한 Procedural Dissolve제작노드 금별 04.25 1103
1146 언리얼4 에픽 라이브 - 스타일라이즈드 번개 이펙트 만들기(린반) 금별 04.25 1043
1145 3D 블랜더 - 머트리얼만으로 촛불효과 제작노드 금별 04.25 1033
1144 언리얼4 언리얼 - 머티리얼/포스트 프로세스 피쉬아이 형태 노드구성 금별 04.25 1003
1143 언리얼4 언리얼/Houdini로 구현하는 Shatter 효과: 3D 모델링과 애니메이션으로 완성하는 언리얼 워크플로우(자막) 금별 04.22 958
1142 언리얼4 언리얼5 - 머트리얼 디자이너를 활용한 간단한 잔물결 제작과정(더빙) 금별 04.03 1051
1141 언리얼4 언리얼5 - 토네이도 효과 제작과정 part2(더빙) 금별 04.02 947
1140 언리얼4 언리얼5 - 토네이도 효과 제작과정 part1(더빙) 금별 04.02 1004
1139 언리얼4 Totem Spawn FX in Unreal Engine 5 Niagara Tutorial ashif 03.24 921
1138 언리얼4 언리얼 - 바닥에 Clamp 되는 머티리얼 예제 금별 03.23 1014
1137 유니티 유니티 - 컷신 VFX 워크플로우 예제 금별 03.23 1491
1136 언리얼4 간단한 Houdini에서 언리얼5 나이아가라로 이펙트 변환 가이드(한국어더빙) 금별 03.23 1137
1135 언리얼4 언리얼5.4 -SampleTexture2.0 노드를 사용하여 입자를 이미지로 결합하는 방법(한국어더빙) 금별 03.23 1010
1134 유니티 유니티 셰이더 그래프 - Cartoon 3D parallax 효과 제작과정 금별 03.03 1401
1133 언리얼4 언리얼5 - 캐릭터 아우라 효과 제작과정(한글자막) 금별 03.03 1334
1132 언리얼4 언리얼 - Spline Thicken 활용 커스텀 빔 간단제작팁 금별 03.03 1115
1131 언리얼4 언리얼/후디니 - 머트리얼로 제작해보는 그록로고(블랙홀느낌) 금별 03.03 1199
1130 언리얼4 언리얼/블랜더 - 귀멸의 칼날 느낌의 번개연출 표현제작과정(한글자막) 금별 03.03 1176
1129 언리얼4 언리얼 - 포스트 프로세싱 머티리얼(방사형 블러) 제작과정(한글자막) 금별 03.03 1064
1128 유니티 유니티 셰이더 그래프 - 간단한 Stylized 화염 트레일 제작과정(한글자막) 금별 03.03 1320
1127 언리얼4 언리얼5 - 문자열(string) VFX를 활용한 커스텀 이벤트 제작과정(한글자막) 금별 03.03 1050

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand