유니티 - 2d Raymarched Smoke



유니티 - 2d Raymarched Smoke

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

번호 포토 분류 제목 글쓴이 날짜 조회
777 언리얼4 언리얼 - 그레이스케일 그라디언트/텍스처를 시각화하는 간단한 방법 사진링크new 금별 03.21 308
776 언리얼4 언리얼 - 먹물 느낌의 검기 효과 제작과정(한글자막) 금별 03.21 301
775 2D 섭스턴스디자인/언리얼적용 - 분화구형 크랙 텍스쳐 제작과정(한글자막) 금별 03.21 277
774 유니티 유니티/포토샵 - 불속성/물속성 소드 슬래시 간단 제작과정(한글자막) 금별 03.19 312
773 3D 블랜더를 활용한 매직 오브 제작과정(머트리얼메이커) 금별 03.19 222
772 2D 포토샵 - 리얼한 연기 간단 제작과정 금별 03.19 252
771 유니티 유니티 - 2D 형태 충격파 궁극기 제작과정 금별 03.17 341
770 2D 애프터이펙트 - 2D 물속성 원통회전 효과 제작과정 금별 03.17 227
769 2D 애프터이펙트 - 2D 물회오리 형태 아우라 모이는 효과 제작방법(한글자막) 금별 03.14 215
768 언리얼4 언리얼 - Stylized 연기효과 제작과정(한글자막) 금별 03.13 274
767 언리얼4 언리얼 - 워터링 머트리얼 제작노드예제 금별 03.11 298
766 유니티 유니티 셰이더 그래프 - 글리치 효과 제작과정 금별 03.10 327
765 3D 후디니를 사용해서 이펙트 메쉬 제작후 HDA툴 제작하기 금별 03.10 252
764 2D 섭스턴스 디자인 - 물튀김 텍스쳐 제작과정 금별 03.10 267
763 2D 포토샵/맥스 - 연기형태의 메쉬 및 텍스쳐 제작방법 금별 03.10 264
762 2D 포토샵 - 잎파리/눈결정체 시퀀스 제작하기 금별 03.10 323
761 2D 포토샵 - 수박무늬 베이스 롤스타일 바닥크랙 텍스쳐 제작과정 금별 03.10 192
760 언리얼4 메쉬를 활용 페이크 볼류메트릭 스모크 간단제작짤방 금별 03.08 223
759 언리얼4 언리얼/게임이펙트기초 - 린반님의 사소한 라이브1(질답위주 라이브) 금별 03.06 196
758 2D 섭스턴스 디자인 - VFX 해골 네크로 발사체 트레일 텍스처 제작방법 part1(한글자막) 금별 03.06 217
757 언리얼4 언리얼5 - 리마스터 파라곤 FX part1 금별 03.06 216
756 언리얼4 언리얼 - 나이아가라에서 For Loops를 사용해 가장 높은 파티클 찾기(한글자막) 금별 03.05 184

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand