유니티 - 2d Raymarched Smoke



유니티 - 2d Raymarched Smoke

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

번호 포토 분류 제목 글쓴이 날짜 조회
122 유니티 유니티 - 캐릭터 트레일 제작방법 금별 2022.07.14 2265
121 유니티 유니티 퀵팁 - 간단한 소팅 이슈 해결법 금별 2022.07.07 1822
120 유니티 유니티 쉐이더 그래프 - 빨려들어가는 이펙트 제작 Almighty Vertex 금별 2022.07.07 3145
119 유니티 유니티 - 크랙형 데칼 3종 제작과정(중국어) 금별 2022.07.05 2446
118 유니티 유니티 - 셀폭발/데칼 제작 제작과정(중국어) 금별 2022.07.05 2095
117 유니티 쿠파FX 유니티 이펙트 강의 프리뷰 - 일자크랙(22년 9월초 개강예정) 금별 2022.06.20 2345
116 유니티 유니티 - 일렁이는 반구체 제작방법 금별 2022.06.16 2682
115 유니티 유니티 - 카툰 느낌의 불/폭발효과 제작방법(중국어) 금별 2022.06.15 3078
114 유니티 유니티 - 3DS 맥스를 활용한 메쉬이펙트 제작방법들(중국어) 금별 2022.06.15 2343
113 유니티 유니티 앰플리파이 쉐이더 - 거미줄 효과 제작방법(중국어) 동영상 금별 2022.05.30 2395
112 유니티 유니티 - 다크 토네이도 제작과정 금별 2022.05.19 3209
111 유니티 유니티 - 물소용돌이 제작방법 금별 2022.05.17 3880
110 유니티 유니티 이펙트 튜토리얼 - 오브젝트 폭발 이펙트 금별 2022.04.20 2730
109 유니티 유니티 - Integrated Circuit Shader Graph 금별 2022.04.17 2413
108 유니티 유니티 - TV 글리치(지직거리는) 쉐이더 제작방법(일본어) 금별 2022.04.06 3817
107 유니티 유니티 - 발사체와 쉴드 이펙트 제작벙법(중국어) 금별 2022.03.30 2550
106 유니티 유니티 - 피격 효과 제작방법(중국어) 금별 2022.03.30 2892
105 유니티 유니티 - 불꽃놀이 이펙트 제작방법(중국어) 금별 2022.03.30 2101
104 유니티 유니티 + 블랜더 VFX tutorial : 공격 잔상 효과 제작방법 금별 2022.03.29 4034
103 유니티 유니티 쉐이더그래프 - 불이펙트 제작방법 금별 2022.03.29 3753
102 유니티 유니티 앰플리파이쉐이더 - 카드형 라이트 엣지 디졸브/디스토션 제작과정 금별 2022.03.18 3458
101 유니티 유니티 쉐이더 그래프 - Remapping Tech Art Toolbox 사진동영상new 금별 2022.03.04 3247

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand