유니티 - 2d Raymarched Smoke



유니티 - 2d Raymarched Smoke

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

번호 포토 분류 제목 글쓴이 날짜 조회
244 언리얼4 언리얼 - 텍스쳐 없이 UV체커 만들기 금별 2022.03.14 1512
243 유니티 유니티 - 자라나는 나무 효과 제작과정 금별 2022.08.25 1520
242 유니티 유니티 - 피격 효과 제작방법(중국어) 금별 2022.03.30 1520
241 언리얼4 언리얼 - 나이아가라에 블루프린트로 트리거 셋팅 퀵팁 금별 2022.08.29 1527
240 3D 3ds맥스 - Helix Mesh 나선형 메시 만들기(한글강좌) 금별 2022.09.24 1529
239 언리얼4 언리얼4 Material Node에서 자주쓰는 Position 종류 노드 설명 금별 2021.05.24 1539
238 유니티 유니티 이펙트 - 플로우맵 활용 흩어지는 연기제작(중국어) 금별 2021.11.01 1542
237 언리얼4 언리얼 짤막팁 - Preview Scene Settings설정 금별 2022.03.25 1546
236 언리얼4 언리얼4 컴파일링 벤치마크 8코어 vs 16코어 CPU[Unreal Engine 4.25.4] 금별 2020.10.27 1551
235 유니티 유니티 쉐이더 그래프 - 빨려들어가는 이펙트 제작 Almighty Vertex 금별 2022.07.07 1552
234 언리얼4 [GDC]Stylized Games을 위한 VFX 아트 디렉팅 금별 2020.01.20 1558
233 유니티 유니티 쉐이더 그래프 - Orthographic 뎁스 금별 2020.03.26 1560
232 유니티 유니티 쉐이더 그래프 - 흐르는 강 쉐이더 튜토리얼 금별 2021.04.27 1561
231 언리얼4 언리얼5 - 아틀라스 마스터 머티리얼을 만드는 방법 금별 2022.12.06 1564
230 유니티 유니티 VFX 그래프 - 효과적인 데칼 제작 셋업 방법 금별 2023.01.05 1565
229 유니티 유니티 - 검기 이펙트 기본부터 캐릭터에 붙이는 전체제작과정(중국어버젼) 금별 2021.12.12 1575
228 언리얼4 언리얼 - 광역 마법진 간단 제작예제 금별 2022.12.11 1581
227 언리얼4 언리얼4 머터리얼 팁 - 머터리얼만으로 트위스트 구현하기 금별 2020.03.26 1586
226 언리얼4 언리얼4 머터리얼 튜토리얼 - 수학을 활용한 쉐입형태 제작 금별 2020.02.04 1588
225 일반 Optimizing UE4 for Fortnite: Battle Royale - Part 1 댓글+1 insaneoops 2018.05.10 1592
224 언리얼4 언리얼 - 동양풍 태극권 아우라 발산 제작과정(중국어) 금별 2022.06.26 1592
223 2D 포토샵 - 간단 불 시퀀스 제작방법 금별 2023.04.08 1599

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand