유니티 - 2d Raymarched Smoke



유니티 - 2d Raymarched Smoke

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

번호 포토 분류 제목 글쓴이 날짜 조회
405 2D 섭디/유니티 - POM(ParallaxOcclusionMapping)활용 바닥 크랙 제작방법 금별 2023.01.10 2606
404 언리얼4 언리얼 - 검소환 공격효과 예제 part1 금별 2023.01.10 2196
403 언리얼4 언리얼 나이아가라 - 디졸브 활용 소환수 공격 제작과정 금별 2023.01.10 2554
402 유니티 유니티 VFX 그래프 - 효과적인 데칼 제작 셋업 방법 금별 2023.01.05 3571
401 유니티 유니티 - Creative Damage Decals & VFX 금별 2023.01.05 1798
400 언리얼4 언리얼 - VFExtra TextureMaker Demo 금별 2022.12.29 1884
399 언리얼4 언리얼 - 물 회오리 효과 제작방법 금별 2022.12.25 2024
398 언리얼4 언리얼 - 머트리얼만으로 구성된 트랜지션 효과 예제 및 제작노드 금별 2022.12.23 2187
397 3D 후디니 - 카툰풍 2D 화염 효과 제작방법 금별 2022.12.18 2736
396 언리얼4 언리얼 나이아가라 - 디졸브 엣지에 파티클 생성방법 금별 2022.12.16 1929
395 언리얼4 Baker in Unreal Engine 5.1 Niagara Tutorial | Download Files ashif 2022.12.15 1698
394 유니티 유니티 VFX 그래프 - 리얼한 포털효과 제작방법 금별 2022.12.14 2233
393 유니티 유니티 VFX 그래프 - Kassadin Slash 제작방법 금별 2022.12.14 2814
392 유니티 유니티 쉐이더 그래프 - Gradients 2D Sky Tutorial 금별 2022.12.12 1844
391 언리얼4 언리얼 - Hit 플레어 간단 제작과정 금별 2022.12.11 1871
390 언리얼4 언리얼 - 간단 반구 폭파 간단 제작예제 금별 2022.12.11 2257
389 언리얼4 언리얼 - 디지털 웨이브 간단 제작예제 금별 2022.12.11 2726
388 언리얼4 언리얼 - 광역 마법진 간단 제작예제 금별 2022.12.11 2806
387 3D 3dsmax에서 UV polar coordinate의 불규칙 모델 구현 금별 2022.12.11 2160
386 언리얼4 언리얼 - 저렴한 포그 제작방법[Depth-mask post process] 금별 2022.12.10 1569
385 유니티 슬래밍 AoE를 만드는 방법 - CGM Summer 22 금별 2022.12.07 1738
384 언리얼4 언리얼5 - 폴더에서 특정폴더/파일삭제후 성능을 즉시 향상시키는 방법 금별 2022.12.06 1618

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand