유니티 - 2d Raymarched Smoke



유니티 - 2d Raymarched Smoke

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

번호 포토 분류 제목 글쓴이 날짜 조회
1361 언리얼4 Target Reticle in Unreal Engine 5 Niagara ashif 07.17 14
1360 언리얼4 Foot Step Dust FX in Unreal Engine 5 Niagara ashif 07.17 14
1359 언리얼4 Levelup VFX in Unreal Engine 5 Niagara ashif 07.17 16
1358 언리얼4 Debuff in Unreal Engine 5 Niagara ashif 07.16 21
1357 언리얼4 Item Pickup VFX in Unreal Engine 5 Niagara ashif 07.16 21
1356 언리얼4 Buff in Unreal Engine 5 Niagara ashif 07.15 32
1355 3D 후디니 - COP활용 Stylized 느낌 물 소용돌이 제작팁 금별 07.15 40
1354 언리얼4 언리얼 - 논텍스처 UV 기반 기하학적 패턴/애니메이션 제작팁 금별 07.15 45
1353 언리얼4 Nature Swirl Heal in Unreal Engine 5 Niagara ashif 07.14 39
1352 언리얼4 Screen Space Fire in Unreal Engine 5 Niagara ashif 07.14 39
1351 언리얼4 언리얼5 - 간단한 공간 균열 제작 워크플로우 금별 07.08 130
1350 언리얼4 언리얼5 - 스크래치 패드활용 간단한 나이아가라 파티클 전체 회전 금별 07.08 123
1349 유니티 유니티 - Stylized 기본 검기 제작04_기본 검광 제작 (전체 워크플로) 금별 07.08 104
1348 유니티 유니티 - Stylized 기본 검기 제작03_검광 모델, 텍스처 및 UV 생성 금별 07.08 92
1347 유니티 유니티 - Stylized 기본 검기 제작02_검기의 구성과 리듬 금별 07.08 82
1346 유니티 유니티 - Stylized 기본 검기 제작01_파티클 시스템 소개 금별 07.08 115
1345 언리얼4 You need this Explosion in Unreal Engine 5 Niagara ashif 07.07 74
1344 언리얼4 언리얼 - 사실적인 데칼 균열 제작과정(한글자막) 금별 06.01 489
1343 언리얼4 언리얼 - 물결 형태 텍스쳐 트랜지션 효과 제작과정(한글자막) 금별 06.01 421
1342 언리얼4 언리얼 - Niagara에서 정적 메시를 사용하여 사용자 지정 파티클 모양 만들기 금별 05.17 513
1341 언리얼4 언리얼 - 포스트 프로세스 2D 페이지 넘김 효과 머트리얼 예제 금별 05.17 415
1340 언리얼4 언리얼 - AI 활용 블랙홀 셰이더를 업그레이드(한글자더빙) 금별 05.17 427

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand