유니티 - 2d Raymarched Smoke



유니티 - 2d Raymarched Smoke

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

번호 포토 분류 제목 글쓴이 날짜 조회
717 유니티 유니티/후디니 - 빔 이펙트 제작과정 금별 01.29 194
716 언리얼4 언리얼5 - 물고기떼 군중이동 간단제작과정(한글자막) 금별 01.29 142
715 유니티 유니티 셰이더 그래프 - Zelda: Breath of the Wild의 원격 폭탄 만들기(한글자막) 금별 01.27 186
714 언리얼4 언리얼5 - 화속성 화염 드래곤 토네이도 제작과정(중국어/AI한글자막) 금별 01.26 167
713 언리얼4 언리얼5 - 배경 운무(안개연기)효과 제작과정(중국어/AI한글자막) 금별 01.26 157
712 2D AI를 활용한 쉽게 배경 누끼 따는 사이트 금별 01.24 124
711 유니티 유니티 - 부분 화면 흔들기 셰이더 제작방법 금별 01.22 177
710 언리얼4 언리얼5 - 나이아가라 이미지 생성 파티클/모듈을 이용한 파티클 로고 만들기(AI자막) 금별 01.20 163
709 언리얼4 언리얼5 - UV 맵에 따라 파티클을 방출(중국어/AI자막) 금별 01.20 164
708 언리얼4 언리얼 - 커브에서 float값에 대한 보다 직관적인 값 입력 금별 01.19 121
707 언리얼4 언리얼5 - Red Smoke Flare Effect 제작과정 금별 01.19 144
706 유니티 유니티 앰플리파이 셰이더 - 병의 출렁이는 액체셰이더 제작과정 금별 01.16 161
705 유니티 유니티 - 카툰풍 플루이드형태 피튀김 효과 제작과정 금별 01.16 187
704 2D 애프터 이펙트 - 파티클 플레임 시퀀스 소스 제작과정 금별 01.16 113
703 언리얼4 언리얼 - 2D 카툰 물보라 간단제작팁(노드이미지첨부) 금별 01.15 152
702 유니티 유니티 - 카툰형 토네이도 제작과정 금별 01.13 199
701 유니티 유니티/후디니 - 카툰형 번개/바닥크랙,파편 이펙트 제작과정 금별 01.13 212
700 유니티 유니티 - 카툰 폭파 이펙트 제작과정 금별 01.11 288
699 언리얼4 언리얼 - 개인작/포트폴리오 영상 녹화방법 금별 01.10 165
698 2D 애프터이펙트 - 카툰 라이트닝 효과 제작과정(일본어/AI자막) 금별 01.10 163
697 2D 애프터이펙트 - 카툰 먼지 웨이브 효과 제작과정(일본어/AI한글자막) 금별 01.10 170
696 언리얼4 언리얼5 - Valorant Spike Explosion 제작과정 금별 01.08 162

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand