유니티 - 2d Raymarched Smoke



유니티 - 2d Raymarched Smoke

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

번호 포토 분류 제목 글쓴이 날짜 조회
441 언리얼4 언리얼4 - 머트리얼로 버블 느낌 구현 금별 2023.03.26 2972
440 유니티 유니티 - 레이저 채찍으로 용소환 바닥 크랙생성 제작튜토리얼 금별 2023.03.26 3212
439 유니티 유니티 앰플리파이 쉐이더 - 모델의 조각/분해/축중심회전 금별 2023.03.26 2388
438 3D 후디니- 그리드를 활용한 충격파 그라운드스파이크 간단제작과정 금별 2023.03.26 2664
437 언리얼4 언리얼 - FFT Ocean Flipbook : Blender 및 UE를 사용하여 생성 및 샘플링하는 방법 금별 2023.03.20 2390
436 언리얼4 언리얼 - 무지갯빛 버블 쉐이더 제작과정 금별 2023.03.17 2660
435 유니티 유니티 - 레거시 쉐이더를 쉐이더 그래프에서 커스텀 함수로 포팅 제작과정 금별 2023.03.15 2627
434 언리얼4 언리얼 5.1 - Creating cinematic VFX from scratch 금별 2023.03.14 2493
433 유니티 유니티 - 간단한 시퀀스 보간 블랜드 제작과정 금별 2023.03.09 2542
432 언리얼4 언리얼 - 회전하는 2D 소용돌이 쉐이더 제작노드 금별 2023.03.08 3278
431 언리얼4 언리얼 - Cairo Tiling 제작노드 및 설명영상 금별 2023.03.08 2471
430 언리얼4 언리얼 - 머터리얼 에디터 4가지 활용 팁 금별 2023.03.08 2158
429 유니티 유니티 - 크리처 소환 이펙트 제작과정 금별 2023.03.08 4145
428 유니티 유니티 - AI 활용한 쉐이더 제작 금별 2023.03.07 3883
427 2D 스테이블 디퓨전을 활용한 AI 시퀀스 텍스쳐 제작방법 금별 2023.03.07 5220
426 언리얼4 언리얼 - 메쉬에 아웃라인 머트리얼 간단 제작방법 금별 2023.03.04 2863
425 유니티 쿠파 유니티이펙트 취업 클래스 실제강의 파도,워터 쇼크웨이브 간단 제작과정 금별 2023.03.04 3570
424 언리얼4 언리얼5 - 스파크 라이트닝 제작과정 금별 2023.03.01 2438
423 언리얼4 언리얼 - 외곽이 꿀렁되는 UMG 머트리얼 금별 2023.02.28 3033
422 유니티 유니티 - 캐릭 도트화 ScreenPosition 적용 제작과정예제 금별 2023.02.20 2646
421 유니티 유니티 - 쿠파 취업 클래스 실제강의 파도,워터 쇼크웨이브 압축 제작과정 금별 2023.02.20 2886
420 언리얼4 언리얼 - UV 축을 보여주는 머티리얼 함수 금별 2023.02.19 3619

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand