유니티 - 2d Raymarched Smoke



유니티 - 2d Raymarched Smoke

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

번호 포토 분류 제목 글쓴이 날짜 조회
557 언리얼4 언리얼 - Value erosion_Normalized 금별 2023.02.02 1883
556 언리얼4 린반의 언리얼 이펙트 강의 가이드 V 1 금별 2023.01.28 1884
555 언리얼4 언리얼 - 횡으로 생성되는 헥사곤 타일 연출예제(노드포함) 금별 2022.10.14 1884
554 유니티 유니티 - Stylzied 검기 제작과정(중국어/AI한글자막) 금별 2024.04.16 1886
553 언리얼4 언리얼 - FFT Ocean Flipbook : Blender 및 UE를 사용하여 생성 및 샘플링하는 방법 금별 2023.03.20 1887
552 언리얼4 언리얼5 - 스파크 라이트닝 제작과정 금별 2023.03.01 1887
551 2D [텍스쳐 페인터]Flame Painter 10주년 할인(10달러) 금별 2022.10.24 1891
550 언리얼4 언리얼 - Hit 플레어 간단 제작과정 금별 2022.12.11 1892
549 유니티 유니티 셰이더 그래프 UI - RT(렌더 텍스쳐)를 사용하여 UI 전용 포스트 효과 만들기 금별 2024.07.26 1895
548 언리얼4 언리얼 머터리얼 테크니컬 오버뷰 - tharlevfx(한국어 자동번역됨) 금별 2022.04.18 1896
547 유니티 유니티 - 카툰 폭파 이펙트 제작과정 금별 2024.01.11 1897
546 언리얼4 언리얼5 - 메시를 다른 메시로 디졸브하는 방법 금별 2023.03.31 1899
545 2D 섭스턴스디자인/언리얼적용 - 분화구형 크랙 텍스쳐 제작과정(한글자막) 금별 2024.03.21 1899
544 언리얼4 언리얼 Material Texcoord 사용법[한국어 라이브 특강] 금별 2023.08.12 1900
543 언리얼4 언리얼 - VFExtra TextureMaker Demo 금별 2022.12.29 1900
542 유니티 유니티 앰플리파이 쉐이더 - 쉐이더 활용 레이더 제작과정 금별 2023.05.25 1901
541 언리얼4 언리얼 5.1 - Creating cinematic VFX from scratch 금별 2023.03.14 1906
540 2D 섭스턴스디자인 - VFX 텍스쳐 제작방법 및 언리얼 적용영상 금별 2022.11.30 1908
539 유니티 유니티 셰이더 그래프 - 가까운 거리에 따른 오퍼시티 변화 셰이더효과 제작과정(한글자막) 금별 2024.02.28 1910
538 언리얼4 언리얼 - 카메라 거리에 따른 머트리얼 효과 예제(한글자막) 금별 2024.02.19 1914
537 언리얼4 언리얼5 나이아가라-촉수 제작 튜토리얼 금별 2023.02.01 1917
536 2D 애프터이펙트 - 2D 물회오리 형태 아우라 모이는 효과 제작방법(한글자막) 금별 2024.03.14 1917

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand