유니티 - 2d Raymarched Smoke



유니티 - 2d Raymarched Smoke

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

번호 포토 분류 제목 글쓴이 날짜 조회
814 언리얼4 Stylized FX in UE5.4 Niagara | For Patreon ashif 00:58 31
813 3D 이펙트의 모든것! 게임직 TA 김용남 인터뷰_01 금별 04.24 34
812 언리얼4 언리얼5 - HLSL을 활용한 이미지 블러 효과 제작과정(한글자막) 금별 04.24 41
811 언리얼4 언리얼5 - 아티스트를 위한 흥나는 프로파일링!: RenderDoc 금별 04.24 39
810 3D 메쉬 UV패닝을 활용한 곡선 트레일 제작짧은팁 금별 04.22 52
809 언리얼4 Breaking Beams in UE5.4 Niagara | For Patreon ashif 04.21 35
808 언리얼4 언리얼5 - 포스트 프로세스 활용한 글리치 효과 노드(다운로드가능) 금별 04.21 46
807 언리얼4 언리얼5/후디니 - 상호작용 VFX 시스템/VAT효과 제작과정(정교한 한글자막) 금별 04.21 46
806 언리얼4 언리얼5 - 텍스처가 없는 포스트트로세스와 같은 CRT효과 제작노드(다운로드가능) 금별 04.21 35
805 언리얼4 언리얼/유니티 - 특수효과 최적화 간단팁들 금별 04.20 49
804 언리얼4 언리얼5 - 파라곤 이펙트를 나이아가라로 리마스터링(한글자막) 금별 04.19 58
803 유니티 유니티 셰이더그래프 - 반응형 파티클 제작과정(한글자막) 금별 04.19 54
802 유니티 유니티 - 앰플리파이셰이더 활용한 극좌표 소용돌이 형태 제작과정(한글자막) 금별 04.18 48
801 유니티 유니티 - 셰이더그래프 활용한 UI에 적용동 스크롤버튼 제작과정(한글자막) 금별 04.18 52
800 언리얼4 린반 언리얼 이펙트 사소한 라이브(4.17일자) - 루멘/나이아가라 파티클라이트 외 금별 04.17 45
799 유니티 유니티 - Stylized 물속성 검기 VFX 제작과정(중국어/AI한글자막) 금별 04.16 90
798 언리얼4 언리얼 - 사인파 왜곡 머트리얼 예제 금별 04.16 78
797 3D 3DsMax - 임팩트 메쉬 제작 간단과정 금별 04.16 53
796 2D 애프터이펙트 - 2D 카툰스타일 불 제작과정 금별 04.16 55
795 2D 애프터이펙트 - 한국어_2D 카툰스타일 스파크/라이트닝 제작과정 금별 04.16 52
794 유니티 유니티 - Stylized 회오리 VFX 스킬 제작과정 금별 04.16 55
793 유니티 유니티 - Stylzied 검기 제작과정(중국어/AI한글자막) 금별 04.16 47

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand