유니티 - 2d Raymarched Smoke



유니티 - 2d Raymarched Smoke

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

번호 포토 분류 제목 글쓴이 날짜 조회
1107 언리얼4 언리얼5/후디니 - 후디니에서 UE5로 ID정보 내보내기(한글자막) 금별 02.15 868
1106 언리얼4 언리얼5 - 로컬스페이스 3D 프로젝션[UV의 공간 텍스쳐 투영](한글자막) 금별 02.15 867
1105 3D 후디니 - 게임을 위한 VDB 압축 | Houdini용 ZibraVDB(알파) 금별 02.15 1045
1104 유니티 유니티 - 역동적인 디졸브활용 세계 변화 효과를 만드는 방법(한글자막) 금별 02.15 1062
1103 언리얼4 Volumetric Smoke in Unreal Engine 5 Material Tutorial ashif 02.14 839
1102 언리얼4 언리얼5+C4d - 나무 줄기 생성 효과 제작팁(한글자막) 금별 02.06 987
1101 언리얼4 언리얼5 - 패럴랙스 형태 카드 효과 제작과정(한글자막) 금별 02.04 974
1100 유니티 유니티 셰이더 그래프 - 오디오 비주얼 스케일 효과 간단제작과정(한글자막) 금별 02.03 1138
1099 언리얼4 언리얼 간단팁 - 웨이브 형태 움직임의 UV 제어방법 금별 02.03 1101
1098 언리얼4 언리얼5 - 사용자 정의 LED 텍스트 제작과정(한글자막) 금별 02.03 955
1097 언리얼4 언리얼 - 플루이드 닌자를 활용한 연기느낌 디졸브 제작 금별 02.03 1041
1096 언리얼4 언리얼5 - 스크래치 모듈이 작동하는 방식(한글자막) 금별 02.03 1026
1095 2D 어도비 애니메이트 - 번개 시퀀스 텍스쳐 제작과정 금별 02.03 1319
1094 언리얼4 언리얼 - 간단한 9분할 느낌의 글리치 효과 제작과정 금별 02.03 1152
1093 유니티 유니티 - 원형 파동 패턴과 애니메이션 폴라코디네이트(한글자막) 금별 02.03 1154
1092 유니티 유니티 셰이더 그래프 - 상호작용 조명 및 fake 볼류메트릭 연기 제작(한글자막) 금별 02.03 1131
1091 유니티 유니티 앰플리파이 셰이더 - 페이크 뎁스를 사용한 VFX_Parallax Shader 활용과정(한글자막) 금별 02.03 1096
1090 유니티 유니티 - 사용자 정의 라이팅 모델1,2 (한글자막) 금별 02.03 1022
1089 언리얼4 언리얼 린반라이브 - 팹 애셋 버전지원 5.5관련/이펙트,캐릭 소팅문제/시퀀서 포스트프로세스 효과 주기 등 금별 02.03 886
1088 언리얼4 언리얼5 - 나이아가라 스타 트레일링 효과 제작과정(한글자막) 금별 02.03 868
1087 언리얼4 언리얼5 - 나이아가라_트레일 컨버전스 효과 제작과정(한글자막) 금별 01.23 1038
1086 유니티 유니티 - 캐릭터 아웃라인 효과 제작예제(한글자막) 금별 01.23 1134

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand