유니티 - 2d Raymarched Smoke



유니티 - 2d Raymarched Smoke

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

번호 포토 분류 제목 글쓴이 날짜 조회
635 언리얼4 배수구 유체 간단 튜토리얼 금별 2018.08.27 1585
634 언리얼4 언리얼4 - 쇼크웨이브 / 그라운드 이펙트 제작과정 댓글+1 금별 2021.12.02 1585
633 언리얼4 언리얼4 튜토리얼 - 심리스 형태의 Animated 노이즈제작 금별 2020.01.31 1579
632 언리얼4 언리얼4 - 방사형 그라디언트와 외적 사용한 굴절링 제작노드 예제 금별 2021.12.14 1576
631 유니티 유니티에서 JangaFX의 VectorayGen을 공식지원 금별 2018.11.11 1569
630 언리얼4 언리얼4 - 페이크 색수차 효과(facking chromatic aberration) 금별 2022.01.24 1563
629 유니티 유니티 - 달 움직임 쉐이더 표현 금별 2021.12.30 1559
628 유니티 유니티 앰플리파이 쉐이더 - 카드 생성 효과 제작방법(중국어) 금별 2022.08.16 1554
열람중 유니티 유니티 - 2d Raymarched Smoke 댓글+5 금별 2019.10.26 1552
626 유니티 유니티 앰플리파이 쉐이더 - 카툰풍 폭파 이펙트 제작방법(중국어) 금별 2023.05.15 1541
625 언리얼 언리얼4 - Unifrom Circle Spawner Tutorial 금별 2019.01.14 1538
624 유니티 유니티 앰플리파이 쉐이더 - 얼음 소재 제작방법(중국어) 댓글+1 금별 2022.09.08 1531
623 언리얼4 언리얼4 튜토리얼 - Explosions for Games (UE4 Particle Tutorial) 금별 2020.01.20 1531
622 언리얼4 언리얼 - WPO를 활용한 각면의 회전 효과 금별 2022.03.14 1520
621 유니티 유니티 앰플리파이 쉐이더 - 용해화 스타일 하프톤 쉐이더 제작방법(중국어) 금별 2022.08.23 1514
620 언리얼4 언리얼4 머터리얼 튜토리얼 - 수학을 활용한 쉐입형태 제작 금별 2020.02.04 1514
619 2D 섭스턴스 디자인 - VFX Smoke Texture Trail new 금별 2022.07.07 1513
618 3D Visual Effects Bootcamp: The Rise of Realtime 금별 2020.03.26 1510
617 2D [간단팁]라이트닝 효과 제작원리 금별 2022.09.03 1504
616 언리얼4 언리얼4 머터리얼 튜토 - 플립북 모션벡터의 비대칭 RowCollumn 카운트 수정 금별 2020.03.19 1500
615 언리얼4 언리얼 - 디졸브 머트리얼 노드 예제 금별 2022.02.17 1499
614 언리얼4 언리얼4 머터리얼 팁 - 머터리얼만으로 트위스트 구현하기 금별 2020.03.26 1488

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand