유니티 - 2d Raymarched Smoke



유니티 - 2d Raymarched Smoke

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

번호 포토 분류 제목 글쓴이 날짜 조회
202 언리얼4 언리얼4 - 아우라 이펙트 머트리얼 제작 노드 참고자료 금별 2021.12.11 2443
201 언리얼4 언리얼4 - 월드 포지션 활용 쉴드 응용 머트리얼 노드 금별 2021.12.11 2266
200 언리얼4 언리얼4 - 매지컬 쉴드 제작 머트리얼 노드 금별 2021.12.11 2250
199 언리얼4 언리얼4 - 화염검 이펙트 제작 과정(중국어) 금별 2021.12.06 1292
198 언리얼4 언리얼4 - 쇼크웨이브 / 그라운드 이펙트 제작과정 댓글+1 금별 2021.12.02 1916
197 언리얼4 언리얼4 + 후디니 활용 구체 변형 효과 예제 댓글+1 금별 2021.12.01 1359
196 언리얼4 언리얼4 - 암석 스파이크 제작 과정(중국어) 동영상new 금별 2021.11.30 1197
195 유니티 유니티 - 귀멸의 칼날 느낌 검기와 회오리 이펙트 제작과정 프리뷰(중국어) 금별 2021.11.30 3154
194 유니티 유니티 - 검기/라인활용 크리스털 파괴효과 제작과정(중국어) 금별 2021.11.26 1451
193 유니티 유니티 이펙트 - 플로우맵 활용 흩어지는 연기제작(중국어) 금별 2021.11.01 1710
192 유니티 유니티 이펙트 - 토네이도 효과 만들기(중국어) 금별 2021.11.01 1394
191 유니티 유니티 이펙트 - 버택스 옵셋, 음악 리듬 머터리얼 만들기(중국어) 동영상new 금별 2021.11.01 1595
190 유니티 유니티 - 트레일 이펙트 제작 참고영상 금별 2021.11.01 2134
189 유니티 유니티 쉐이더 - 간단한 parallax 얼음표현 금별 2021.10.01 2981
188 언리얼4 언리얼5 - 기초 카오스(파괴/Destruction) 튜토리얼 금별 2021.09.27 2050
187 언리얼4 언리얼4 - 2d 원형 회오리 쉐이더 제작 참고 노드 금별 2021.08.29 2487
186 유니티 유니티 이펙트 튜토리얼 - 툰느낌의 토네이도 제작 영상 금별 2021.05.24 2146
185 유니티 유니티/블랜더 - 토러스 노멀로 불규칙한 링 모양 만들기 금별 2021.05.24 2821
184 언리얼4 언리얼4 Material Node에서 자주쓰는 Position 종류 노드 설명 금별 2021.05.24 1690
183 유니티 유니티 - Magical Plasma Orb 튜토리얼 금별 2021.05.20 1386
182 유니티 유니티 쉐이더 그래프 - 흐르는 강 쉐이더 튜토리얼 금별 2021.04.27 1699
181 유니티 유니티 쉐이더그래프 - Potion Liquid Wobble(액체 흔들림 효과) 금별 2021.04.26 2662

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand