유니티 - 2d Raymarched Smoke



유니티 - 2d Raymarched Smoke

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

번호 포토 분류 제목 글쓴이 날짜 조회
1270 언리얼4 언리얼 - 나이아가라 나선형 파티클 구현 과정 금별 12.04 34
1269 언리얼4 Create a Bubble Shield VFX in UE5 Niagara! (Character Defense & Multi-Layer Bubbles) ????️ ashif 12.02 71
1268 언리얼4 언리얼 - 흡입형 화면이 빨려들어가는 느낌 스크린 이펙트 제작과정(한글자막) 금별 12.02 81
1267 언리얼4 언리얼 - 물결무늬 에너지 실드 소재 제작과정(한글자막) 금별 12.02 74
1266 2D 포토샵 - 빛 효과 텍스쳐 간단 제작방법팁 금별 12.02 77
1265 3D 후디니 - COP 활용한 검기 텍스쳐 생성 과정(한글자막) 금별 11.24 168
1264 유니티 유니티 - ASE 활용 포털 조각 분리 및 트위스트 애니메이션 제작과정(한글자막) 금별 11.24 156
1263 언리얼4 언리얼 - 나이아가라 파티클 위치 및 곡선(Arc) 제어과정 금별 11.24 161
1262 언리얼4 언리얼5 - 나이아가라 객체 회전 예제 금별 11.24 141
1261 유니티 유니티 - (퀵팁) 간단한 파티클 orbit 움직임제어팁 금별 11.20 167
1260 언리얼4 Create a Multi-Layer Ribbon Trail VFX in UE5 Niagara! (Advanced Color & Edge Material) ????〰️✨ ashif 11.18 110
1259 언리얼4 언리얼5.7기준 - 나이아가라의 확장성 및 모범 사례 금별 11.17 197
1258 언리얼4 언리얼 - Niagara로 스플라인을 따라 발사되는 파티클 제작하기 금별 11.17 175
1257 언리얼4 언리얼5 - 오브젝트를 풍경에 혼합하기: 런타임 가상 텍스처 사용법 금별 11.17 180
1256 언리얼4 언리얼5 - 동적 SubUV 데칼(Decal) 제작하기 금별 11.17 155
1255 언리얼4 언리얼 - 리본 VFX 설명_색상·너비·왜곡 커스텀 제작과정(한글자막) 금별 11.15 164
1254 언리얼4 언리얼5 Material 업데이트 요약 (UE 5.6 ~ 5.7 및 미래 전망) 금별 11.11 246
1253 유니티 유니티 - ASE 활용 Stylized 폭발 과정(한글자막) 금별 11.11 232
1252 유니티 유니티 - Stylized 불꽃 픽셀화 간단 제작과정(한글자막) 금별 11.11 245
1251 3D 마법진 눈알 움직임 연출 예제 금별 11.11 235
1250 언리얼4 언리얼5 - 커스텀 노드: UV 스케일 및 이동(Scale & Translate) 직접 만들기 금별 11.11 196
1249 유니티 유니티 - ASE로 UV Flow + Noise 흔들림 기본 VFX 셰이더 제작과정(한글자막) part3 금별 11.05 229

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand