유니티 - 2d Raymarched Smoke



유니티 - 2d Raymarched Smoke

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

번호 포토 분류 제목 글쓴이 날짜 조회
771 유니티 유니티 - 2D 형태 충격파 궁극기 제작과정 금별 03.17 260
770 2D 애프터이펙트 - 2D 물속성 원통회전 효과 제작과정 금별 03.17 163
769 2D 애프터이펙트 - 2D 물회오리 형태 아우라 모이는 효과 제작방법(한글자막) 금별 03.14 145
768 언리얼4 언리얼 - Stylized 연기효과 제작과정(한글자막) 금별 03.13 217
767 언리얼4 언리얼 - 워터링 머트리얼 제작노드예제 금별 03.11 204
766 유니티 유니티 셰이더 그래프 - 글리치 효과 제작과정 금별 03.10 216
765 3D 후디니를 사용해서 이펙트 메쉬 제작후 HDA툴 제작하기 금별 03.10 166
764 2D 섭스턴스 디자인 - 물튀김 텍스쳐 제작과정 금별 03.10 203
763 2D 포토샵/맥스 - 연기형태의 메쉬 및 텍스쳐 제작방법 금별 03.10 181
762 2D 포토샵 - 잎파리/눈결정체 시퀀스 제작하기 금별 03.10 204
761 2D 포토샵 - 수박무늬 베이스 롤스타일 바닥크랙 텍스쳐 제작과정 금별 03.10 124
760 언리얼4 메쉬를 활용 페이크 볼류메트릭 스모크 간단제작짤방 금별 03.08 171
759 언리얼4 언리얼/게임이펙트기초 - 린반님의 사소한 라이브1(질답위주 라이브) 금별 03.06 145
758 2D 섭스턴스 디자인 - VFX 해골 네크로 발사체 트레일 텍스처 제작방법 part1(한글자막) 금별 03.06 156
757 언리얼4 언리얼5 - 리마스터 파라곤 FX part1 금별 03.06 167
756 언리얼4 언리얼 - 나이아가라에서 For Loops를 사용해 가장 높은 파티클 찾기(한글자막) 금별 03.05 128
755 언리얼4 언리얼 - 충돌(콜리전) 채널로 충돌 제어(한글자막) 금별 03.05 127
754 언리얼4 언리얼 - 월드포지션옵셋으로 뿌리를 내리는 효과 제작과정(한글자막) 금별 03.05 125
753 언리얼4 언리얼 - 머트리얼과 나이아가라를 사용하여 오브젝트 크기 조정(한글자막) 금별 03.05 115
752 언리얼4 언리얼 - 차원 포탈 생성 VFX 제작과정 금별 03.04 253
751 언리얼4 언리얼 - Sobel 외곽선 탐지 포스트 프로세스 제작과정(한글자막) 금별 03.04 150
750 언리얼4 언리얼 - VFX 아티스트로서 더 빠르게 작업하기 위한 단축기 사용법(한글자막) 금별 03.04 141

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand