유니티 - 2d Raymarched Smoke



유니티 - 2d Raymarched Smoke

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

번호 포토 분류 제목 글쓴이 날짜 조회
264 유니티 유니티/포토샵 - 불속성/물속성 소드 슬래시 간단 제작과정(한글자막) 금별 03.19 121
263 유니티 유니티 - 2D 형태 충격파 궁극기 제작과정 금별 03.17 127
262 유니티 유니티 셰이더 그래프 - 글리치 효과 제작과정 금별 03.10 106
261 유니티 유니티 셰이더 그래프 - 가까운 거리에 따른 오퍼시티 변화 셰이더효과 제작과정(한글자막) 금별 02.28 113
260 유니티 유니티 앰플리파이 셰이더 - 2D 형태 Sci-fi 파티클 테이링 효과 예제 및 제작노드 금별 02.26 102
259 유니티 유니티 - 카툰풍 핵폭발 효과 제작과정(AI한글자막) 금별 02.26 372
258 유니티 유니티 셰이더 그래프 - 간단한 지형스캔 효과 제작방법(한글자막) 금별 02.20 115
257 유니티 유니티 앰플라파이 셰이더 - 입체적 카드 효과 제작과정 금별 02.14 409
256 유니티 유니티 셰이더 그래프 - 2D 카툰풍 구체아우라 확산효과 제작과정 금별 02.07 313
255 유니티 유니티 - 초보자도 이해하는 URP와 성능, 그리고 모바일까지 금별 02.03 132
254 유니티 유니티 셰이더 그래프 - 오디오 비주얼라이저 효과 제작과정 금별 02.02 113
253 유니티 유니티/후디니 - 빔 이펙트 제작과정 금별 01.29 194
252 유니티 유니티 셰이더 그래프 - Zelda: Breath of the Wild의 원격 폭탄 만들기(한글자막) 금별 01.27 186
251 유니티 유니티 - 부분 화면 흔들기 셰이더 제작방법 금별 01.22 177
250 유니티 유니티 앰플리파이 셰이더 - 병의 출렁이는 액체셰이더 제작과정 금별 01.16 161
249 유니티 유니티 - 카툰풍 플루이드형태 피튀김 효과 제작과정 금별 01.16 187
248 유니티 유니티 - 카툰형 토네이도 제작과정 금별 01.13 199
247 유니티 유니티/후디니 - 카툰형 번개/바닥크랙,파편 이펙트 제작과정 금별 01.13 212
246 유니티 유니티 - 카툰 폭파 이펙트 제작과정 금별 01.11 288
245 유니티 유니티 앰플리파이 셰이더 - 색수차 활용 글리치 효과 제작튜토리얼 금별 01.03 198
244 유니티 유니티 앰플리파이 셰이더 - 똥파리 셰이더 옷 제작과정 금별 2023.12.23 217
243 유니티 유니티 앰플리파이 셰이더 - Hell Rift VFX를 만드는 방법(한국어자막/+후디니,섭디) 금별 2023.12.22 231

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand