유니티 - 2d Raymarched Smoke



유니티 - 2d Raymarched Smoke

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

번호 포토 분류 제목 글쓴이 날짜 조회
190 유니티 유니티 - Christmas Lootbox 이펙트 / 제작과정 사진 금별 2021.02.04 1636
189 유니티 [NDC 2018] 게임 이펙트를 시작하는 법 금별 2019.07.18 1633
188 유니티 유니티 앰플리파이 쉐이더 - 카드 생성 효과 제작방법(중국어) 금별 2022.08.16 1605
187 유니티 유니티 - 바닥 크랙/흩날림 효과 제작과정(중국어) 금별 2022.02.17 1603
186 유니티 유니티에서 JangaFX의 VectorayGen을 공식지원 금별 2018.11.11 1590
185 유니티 유니티 - 달 움직임 쉐이더 표현 금별 2021.12.30 1581
열람중 유니티 유니티 - 2d Raymarched Smoke 댓글+5 금별 2019.10.26 1576
183 유니티 유니티 앰플리파이 쉐이더 - 카툰풍 폭파 이펙트 제작방법(중국어) 금별 2023.05.15 1565
182 유니티 유니티 앰플리파이 쉐이더 - 용해화 스타일 하프톤 쉐이더 제작방법(중국어) 금별 2022.08.23 1545
181 유니티 유니티 - 검기 이펙트 기본부터 캐릭터에 붙이는 전체제작과정(중국어버젼) 금별 2021.12.12 1509
180 유니티 유니티 쉐이더 그래프 - Remapping Tech Art Toolbox 사진동영상new 금별 2022.03.04 1506
179 유니티 유니티 쉐이더 그래프 - 흐르는 강 쉐이더 튜토리얼 금별 2021.04.27 1495
178 유니티 유니티 쉐이더 그래프 - Orthographic 뎁스 금별 2020.03.26 1491
177 유니티 유니티 VFX 그래프 - 효과적인 데칼 제작 셋업 방법 금별 2023.01.05 1477
176 유니티 유니티 이펙트 - 플로우맵 활용 흩어지는 연기제작(중국어) 금별 2021.11.01 1471
175 유니티 유니티 셰이더&렌더링 에센스(retr0) 금별 2020.02.16 1459
174 유니티 유니티 - 꿀렁거리는 촉수 쉐이더 제작과정 금별 2021.12.30 1452
173 유니티 유니티 쉐이더 그래프 - 빨려들어가는 이펙트 제작 Almighty Vertex 금별 2022.07.07 1446
172 유니티 유니티 - 피격 효과 제작방법(중국어) 금별 2022.03.30 1443
171 유니티 유니티 앰플리파이 쉐이더 - 트라이메쉬형태 방패 스킨 제작방법(중국어) 금별 2022.08.16 1399
170 유니티 유니티 - 자라나는 나무 효과 제작과정 금별 2022.08.25 1390
169 유니티 유니티 - 라이트닝 파티클 제작방법(오브젝트 근처에서 튀기는) 금별 2022.11.28 1388

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand