유니티 - 2d Raymarched Smoke



유니티 - 2d Raymarched Smoke

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

번호 포토 분류 제목 글쓴이 날짜 조회
1157 언리얼4 언리얼 - 나이아가라 캐쉬 간단 사용방법 금별 10:11 4
1156 언리얼4 Unleash the Magic: Crafting Material Spells in UE5 Niagara ashif 05.10 33
1155 언리얼4 Create Stunning Ghost Trails in Unreal Engine 5 with Niagara ashif 05.09 45
1154 언리얼4 Create a Sci-Fi Forcefield Shield in Unreal Engine 5: A Complete Guide ashif 05.08 68
1153 언리얼4 Create Stunning Lightning Orbs in Unreal Engine Niagara: Step-by-Step Tutorial ashif 05.02 130
1152 언리얼4 언리얼5 - UV 조작으로 만드는 동적 그래픽(더빙) 금별 04.29 225
1151 언리얼4 언리얼 - 페이지 넘긴 효과 머트리얼 구현과정 금별 04.29 163
1150 언리얼4 Create Spell in UE5 Niagara Tutorial ashif 04.25 162
1149 언리얼4 언리얼 - 간단한 Procedural Dissolve제작노드 금별 04.25 204
1148 언리얼4 에픽 라이브 - 스타일라이즈드 번개 이펙트 만들기(린반) 금별 04.25 175
1147 3D 블랜더 - 머트리얼만으로 촛불효과 제작노드 금별 04.25 141
1146 언리얼4 언리얼 - 머티리얼/포스트 프로세스 피쉬아이 형태 노드구성 금별 04.25 159
1145 언리얼4 Rays Material MAGIC on Skeletal Mesh in Unreal Engine 5 ashif 04.24 140
1144 언리얼4 언리얼/Houdini로 구현하는 Shatter 효과: 3D 모델링과 애니메이션으로 완성하는 언리얼 워크플로우(자막) 금별 04.22 170
1143 언리얼4 언리얼5 - 머트리얼 디자이너를 활용한 간단한 잔물결 제작과정(더빙) 금별 04.03 286
1142 언리얼4 Magical Shield in Unreal Engine 5 Niagara Tutorial ashif 04.02 220
1141 언리얼4 언리얼5 - 토네이도 효과 제작과정 part2(더빙) 금별 04.02 197
1140 언리얼4 언리얼5 - 토네이도 효과 제작과정 part1(더빙) 금별 04.02 200
1139 언리얼4 Totem Spawn FX in Unreal Engine 5 Niagara Tutorial ashif 03.24 230
1138 언리얼4 언리얼 - 바닥에 Clamp 되는 머티리얼 예제 금별 03.23 313
1137 유니티 유니티 - 컷신 VFX 워크플로우 예제 금별 03.23 343
1136 언리얼4 간단한 Houdini에서 언리얼5 나이아가라로 이펙트 변환 가이드(한국어더빙) 금별 03.23 271

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand