유니티 - 2d Raymarched Smoke



유니티 - 2d Raymarched Smoke

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

번호 포토 분류 제목 글쓴이 날짜 조회
102 유니티 유니티 VFX 그래프 - 효과적인 데칼 제작 셋업 방법 금별 2023.01.05 1524
101 유니티 유니티 쉐이더 그래프 - Orthographic 뎁스 금별 2020.03.26 1530
100 유니티 유니티 쉐이더 그래프 - 흐르는 강 쉐이더 튜토리얼 금별 2021.04.27 1534
99 유니티 유니티 - 검기 이펙트 기본부터 캐릭터에 붙이는 전체제작과정(중국어버젼) 금별 2021.12.12 1538
98 유니티 유니티 쉐이더 그래프 - Remapping Tech Art Toolbox 사진동영상new 금별 2022.03.04 1568
97 유니티 유니티 앰플리파이 쉐이더 - 용해화 스타일 하프톤 쉐이더 제작방법(중국어) 금별 2022.08.23 1587
96 유니티 유니티 앰플리파이 쉐이더 - 카툰풍 폭파 이펙트 제작방법(중국어) 금별 2023.05.15 1599
열람중 유니티 유니티 - 2d Raymarched Smoke 댓글+5 금별 2019.10.26 1608
94 유니티 유니티에서 JangaFX의 VectorayGen을 공식지원 금별 2018.11.11 1623
93 유니티 유니티 - 달 움직임 쉐이더 표현 금별 2021.12.30 1627
92 유니티 유니티 - 바닥 크랙/흩날림 효과 제작과정(중국어) 금별 2022.02.17 1630
91 유니티 유니티 앰플리파이 쉐이더 - 카드 생성 효과 제작방법(중국어) 금별 2022.08.16 1662
90 유니티 [NDC 2018] 게임 이펙트를 시작하는 법 금별 2019.07.18 1663
89 유니티 유니티 - Christmas Lootbox 이펙트 / 제작과정 사진 금별 2021.02.04 1666
88 유니티 유니티 쉐이더 그래프 - Cuphead Fire 금별 2020.10.20 1681
87 유니티 유니티 쉐이더 그래프 - Weaving Ring Tutorial 2 댓글+1 금별 2019.08.12 1681
86 유니티 유니티 버텍스 옵셋 효과 예제 Juane Gray 금별 2019.08.20 1692
85 유니티 유니티 HDRP에서 소규모 고품질의 영상 제작 - Unite Tokyo 2019 금별 2020.03.29 1728
84 유니티 유니티 - 다크 토네이도 제작과정 금별 2022.05.19 1734
83 유니티 유니티 이펙트 튜토리얼 - 데몬즈 소울 느낌의 자연스러운 디졸브 사라짐 효과 금별 2021.04.01 1754
82 유니티 유니티 - 기어즈5 Hammer of Dawn 이펙트 만들기 댓글+1 금별 2020.05.16 1755
81 유니티 유니티 앰플리파이 쉐이더 - 노이즈 쉐이더 제작과정(중국어) 금별 2022.08.11 1760

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand