유니티 - 2d Raymarched Smoke



유니티 - 2d Raymarched Smoke

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

번호 포토 분류 제목 글쓴이 날짜 조회
214 2D 포토샵 - 간단 불 시퀀스 제작방법 금별 2023.04.08 1669
213 2D 이펙트 이미터별 요소 영어용어정리 댓글+1 금별 2022.09.15 1671
212 유니티 유니티 앰플리파이 쉐이더 - 카툰풍 폭파 이펙트 제작방법(중국어) 금별 2023.05.15 1672
211 언리얼4 언리얼4 - 방사형 그라디언트와 외적 사용한 굴절링 제작노드 예제 금별 2021.12.14 1686
210 유니티 유니티에서 JangaFX의 VectorayGen을 공식지원 금별 2018.11.11 1687
209 유니티 유니티 - 바닥 크랙/흩날림 효과 제작과정(중국어) 금별 2022.02.17 1696
208 유니티 유니티 - 달 움직임 쉐이더 표현 금별 2021.12.30 1696
207 언리얼4 언리얼 - 나이아가라 흡수 효과 제작방법 금별 2022.10.20 1703
206 언리얼4 언리얼4 - 페이크 색수차 효과(facking chromatic aberration) 금별 2022.01.24 1705
205 2D 섭스턴스 디자인 - VFX Smoke Texture Trail new 금별 2022.07.07 1705
204 유니티 유니티 쉐이더 그래프 - Remapping Tech Art Toolbox 사진동영상new 금별 2022.03.04 1711
203 유니티 [NDC 2018] 게임 이펙트를 시작하는 법 금별 2019.07.18 1713
202 언리얼4 언리얼4 튜토리얼 - 심리스 형태의 Animated 노이즈제작 금별 2020.01.31 1714
201 언리얼4 배수구 유체 간단 튜토리얼 금별 2018.08.27 1719
200 언리얼4 언리얼 - WPO를 활용한 각면의 회전 효과 금별 2022.03.14 1719
199 3D [아르카도님 번역]【CAPCOM RE 2019】데빌메이크라이5에 VFX해설 금별 2020.02.10 1725
198 언리얼4 언리얼4 - 버블쉐이더 금별 2019.08.20 1732
197 유니티 유니티 쉐이더 그래프 - Cuphead Fire 금별 2020.10.20 1736
196 유니티 유니티 쉐이더 그래프 - Weaving Ring Tutorial 2 댓글+1 금별 2019.08.12 1738
195 유니티 유니티 - Christmas Lootbox 이펙트 / 제작과정 사진 금별 2021.02.04 1740
194 유니티 유니티 버텍스 옵셋 효과 예제 Juane Gray 금별 2019.08.20 1744
193 3D 3DS 맥스 팁 - UV로 부터 버택스 컬러 그라디언트 활용법 금별 2020.11.17 1755

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand