유니티 - 2d Raymarched Smoke



유니티 - 2d Raymarched Smoke

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

번호 포토 분류 제목 글쓴이 날짜 조회
726 언리얼4 언리얼 - 스페이스 포털 제작과정(중국어/AI한글자막) 금별 02.06 185
725 언리얼4 언리얼 - 오디오 비주얼라이제이션 제작노드 간단예제 금별 02.06 116
724 언리얼4 언리얼 - 언리얼 나나이트 기본 개념 정리 금별 02.03 230
723 2D 텍스처 압축포맷 정리 금별 02.03 149
722 유니티 유니티 - 초보자도 이해하는 URP와 성능, 그리고 모바일까지 금별 02.03 181
721 언리얼4 언리얼5.4 - 나이아가라의 스킨 캐시 데이터 엑세스 옵션 추가 금별 02.02 123
720 유니티 유니티 셰이더 그래프 - 오디오 비주얼라이저 효과 제작과정 금별 02.02 142
719 언리얼4 언리얼5 - 카툰형 메테오 레인 제작과정(한글자막) 금별 01.31 186
718 언리얼4 언리얼5 - 나이가라 활용한 아이스 스킬효과 제작과정 금별 01.29 229
717 유니티 유니티/후디니 - 빔 이펙트 제작과정 금별 01.29 237
716 언리얼4 언리얼5 - 물고기떼 군중이동 간단제작과정(한글자막) 금별 01.29 173
715 유니티 유니티 셰이더 그래프 - Zelda: Breath of the Wild의 원격 폭탄 만들기(한글자막) 금별 01.27 233
714 언리얼4 언리얼5 - 화속성 화염 드래곤 토네이도 제작과정(중국어/AI한글자막) 금별 01.26 225
713 언리얼4 언리얼5 - 배경 운무(안개연기)효과 제작과정(중국어/AI한글자막) 금별 01.26 210
712 2D AI를 활용한 쉽게 배경 누끼 따는 사이트 금별 01.24 171
711 유니티 유니티 - 부분 화면 흔들기 셰이더 제작방법 금별 01.22 216
710 언리얼4 언리얼5 - 나이아가라 이미지 생성 파티클/모듈을 이용한 파티클 로고 만들기(AI자막) 금별 01.20 207
709 언리얼4 언리얼5 - UV 맵에 따라 파티클을 방출(중국어/AI자막) 금별 01.20 262
708 언리얼4 언리얼 - 커브에서 float값에 대한 보다 직관적인 값 입력 금별 01.19 141
707 언리얼4 언리얼5 - Red Smoke Flare Effect 제작과정 금별 01.19 172
706 유니티 유니티 앰플리파이 셰이더 - 병의 출렁이는 액체셰이더 제작과정 금별 01.16 203
705 유니티 유니티 - 카툰풍 플루이드형태 피튀김 효과 제작과정 금별 01.16 232

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand