유니티 - 2d Raymarched Smoke



유니티 - 2d Raymarched Smoke

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

번호 포토 분류 제목 글쓴이 날짜 조회
1214 언리얼4 Create EPIC Aura Shield VFX in Unreal Engine 5 Niagara ashif 09.03 21
1213 언리얼4 언리얼5 - Niagara로 번개와 표면 상호작용 VFX 만들기 금별 09.03 25
1212 언리얼4 언리얼5 - 간단한 바닥 아우라 색수차 효과를 추가 제작팁 금별 09.03 23
1211 언리얼4 언리얼5 - Rotate Around Point 활용 궤도 애니메이션 연출 간단팁 금별 09.03 19
1210 언리얼4 언리얼5 - halftone post-process 제작 예제 금별 09.03 19
1209 언리얼4 언리얼5 - 흡수 및 폭발 효과 간단 제작과정(한글자막) 금별 09.02 64
1208 언리얼4 언리얼5 - 회피 텔레포트 효과 간단제작과정(한글자막) 금별 09.02 51
1207 언리얼4 언리얼5 - Stylized 화속성 검기 간단 제작 분석(한글자막) 금별 09.02 40
1206 언리얼4 언리얼5 - 메시 조각 흡수 간단 제작과정(한글자막) 금별 09.02 40
1205 언리얼4 유니티 - 고드름 형태 프리즈 셰이더 제작과정(한글자막) 금별 09.02 39
1204 언리얼4 언리얼5 - Stylized 라이트닝 메쉬 제작과정(한글자막) 금별 08.22 174
1203 언리얼4 언리얼/C4D로 만드는 모션그래픽 스타일 VFX 제작과정(한글자막) 금별 08.22 104
1202 언리얼4 후디니/언리얼5 - 가벼운 VFX: Pivot Painter 제작과정(한글자막) 금별 08.22 134
1201 언리얼4 언리얼5 - 자연스러운 바닥 얼음생성 효과 제작과정(한글자막) 금별 08.22 120
1200 언리얼4 언리얼5 - 간단한 바닥 아우라 색수차 효과를 추가 제작팁 금별 08.22 94
1199 언리얼4 Power Up Sphere with Fresnel Effect UE5 Tutorial ashif 08.21 98
1198 언리얼4 Create EPIC Mystic Barrier Effect with Niagara Particles in Unreal Engine 5 ashif 08.20 105
1197 언리얼4 언리얼5 - 셰이더 토이로 만든 블랙홀을 언리얼에서 구현하는과정 금별 07.27 291
1196 언리얼4 언리얼5 - 나이아가라 활용한 라이트닝 감전효과 제작과정(한글자막) 금별 07.27 259
1195 언리얼4 언리얼5 - 고품질 반사 효과 만들기: Reflection Vector 활용법 금별 07.25 265
1194 언리얼4 언리얼5 - EasyMap으로 구현하는 무작위 텍스처 타일링 기법 금별 07.25 246
1193 언리얼4 How to Create EPIC Toon Smoke Trail FX in Unreal Engine 5 ashif 07.22 196

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand