유니티 - 2d Raymarched Smoke



유니티 - 2d Raymarched Smoke

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

번호 포토 분류 제목 글쓴이 날짜 조회
341 유니티 유니티 - 3DS 맥스를 활용한 메쉬이펙트 제작방법들(중국어) 금별 2022.06.15 1341
340 언리얼4 언리얼 - 원신 느낌의 동결효과 제작과정 금별 2022.11.21 1348
339 언리얼4 언리얼 - 머트리얼만으로 구성된 트랜지션 효과 예제 및 제작노드 금별 2022.12.23 1349
338 언리얼4 언리얼4 나이아가라 - 흩뿌려지는 형태의 디졸브 제작방법 금별 2022.11.03 1353
337 언리얼4 언리얼4 + 후디니 활용 구체 변형 효과 예제 댓글+1 금별 2021.12.01 1360
336 언리얼4 이펙터의 모든것! 게임이펙터 O/X 인터뷰 [신입~3년차] new 금별 2023.05.15 1362
335 2D 포토샵 - 간단한 4장 시퀀스 번개 제작방법2 금별 2023.04.08 1370
334 유니티 유니티 - 불,얼음,전기 속성 텍스쳐 구성 팁 금별 2023.05.08 1371
333 언리얼4 언리얼 - 외곽이 꿀렁되는 UMG 머트리얼 금별 2023.02.28 1372
332 유니티 유니티 앰플리파이 쉐이더 - 흑백으로 집중되는 펜스타일 포스트프로세스 간단 제작과정 금별 2023.04.04 1373
331 2D 섭스턴스 디자인 - 섭디에서 시퀀스 이미지 제작방법 금별 2022.11.23 1375
330 2D 애프터이펙트 - 루핑 빔 텍스쳐 제작방법(중국어) 금별 2021.12.14 1377
329 언리얼4 언리얼 - 하트 모양의 파티클 이동 간단 제작과정 금별 2023.07.06 1386
328 2D 포토샵 - 간단한 플레어 제작방법 금별 2022.09.14 1388
327 유니티 유니티 쉐이더 그래프 - Eroision 효과 제작과정 금별 2022.02.11 1388
326 유니티 유니티 - Magical Plasma Orb 튜토리얼 금별 2021.05.20 1391
325 유니티 유니티 VFX 그래프 - 포켓몬 이빨 공격효과 예제 제작과정 금별 2023.01.12 1391
324 유니티 유니티 이펙트 - 토네이도 효과 만들기(중국어) 금별 2021.11.01 1398
323 유니티 유니티 VFX 그래프 - Kassadin Slash 제작방법 금별 2022.12.14 1406
322 언리얼4 언리얼5 - 텍스쳐 메모리 절약팁(블루 채널 사용 간소화) 금별 2022.12.06 1412
321 언리얼4 언리얼5 - 시간 역재생(프렉쳐) 효과 튜토리얼 금별 2022.08.18 1414
320 유니티 유니티 앰플리 - 웨이브 디폼 형태의 옷가락 날리는 효과 구현 예제 금별 2023.05.08 1419

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand