유니티 - 2d Raymarched Smoke



유니티 - 2d Raymarched Smoke

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

번호 포토 분류 제목 글쓴이 날짜 조회
1182 언리얼4 린반라이브 - 무엇이든 물어보세요(크래쉬 해결 방법/스태틱메시 뷰모드에서 노멀맵 보기/애셋 삭제 주의사항 등) 금별 06.19 325
1181 언리얼4 언리얼5 - Niagara로 실감나는 핏물 VFX 제작과정(한글자막) 파트1 금별 06.19 491
1180 유니티 유니티 - Ground Effect와 검기 기초 제작가이드(한글자막) 금별 06.17 532
1179 유니티 유니티 VFX[검기] : 검기 나비 VFX/Particle System과 Airflow 효과 제작가이드(한글자막) 금별 06.17 481
1178 유니티 유니티 VFX[검기] : 검광과 화염 효과 제작 가이드(한글자막) 금별 06.17 437
1177 유니티 유니티 VFX[검기] : 세 가지 검기(Sword Trail) 제작 기법 가이드(한글자막) 금별 06.17 440
1176 언리얼4 언리얼5 - 마야 프렉쳐 시뮬레이션을 언리얼에서 임포팅(한글자막) 금별 06.16 396
1175 언리얼4 The Ultimate UE5 UI Material Tutorial: Mastering Radial Progress Bars ashif 06.12 660
1174 언리얼4 Step-by-Step: Building a Customizable Slider Material in Unreal Engine ashif 06.11 722
1173 언리얼4 언리얼5 - Sci-fi 격자 지형 균열 VFX 제작과정(한글자막) 금별 05.30 1407
1172 언리얼4 언리얼5 - 레이저 반사 VFX 제작과정(한글자막) 금별 05.30 1437
1171 유니티 유니티/맥스/포토샵 - 간단한 큐브 애니메이션 효과 제작예제(한글자막) 금별 05.30 1307
1170 언리얼4 Step-by-Step Guide: Healing Aura Effect in Unreal Engine 5 Niagara ashif 05.27 1367
1169 언리얼4 언리얼 - 1,2개의 축을 제어하는 월드 기반 회전 예제 금별 05.26 1285
1168 유니티 유니티 - 그라디언트 맵으로 실시간 VFX 제작하기(한글자막) 금별 05.26 1245
1167 3D 3DS Max - 직각 Sword Slash 메쉬 제작방법 금별 05.23 1182
1166 언리얼4 언리얼/후디니 - 코페르니쿠스 시뮬레이션 데칼을 언리얼에서 활용하는법(한글자막) 금별 05.21 1417
1165 언리얼4 언리얼5 - 죽음 디졸브 이펙트 Niagara SkeletalMesh Location 사용 금별 05.21 1264
1164 언리얼4 후디니/언리얼 - 유체 및 불규칙한 동적 오브젝트를 UE로 내보내는 두 가지 방법 – ABC와 버텍스 애니메이션 금별 05.20 1253
1163 유니티 유니티 - 음률 리듬 VFX 제작 가이드(한글자막) 금별 05.20 1240
1162 유니티 유니티 - 별빛 VFX: 단계별 제작 가이드(한글자막) 금별 05.20 1326
1161 유니티 유니티 - Ice Cone과 Spike 제작 가이드(한글자막) 금별 05.20 1236

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand