유니티 - 2d Raymarched Smoke



유니티 - 2d Raymarched Smoke

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

번호 포토 분류 제목 글쓴이 날짜 조회
1244 언리얼4 후디니/언리얼 - 후디니 활용 절차적(프로시졀) 검기 메시,텍스쳐 VFX 제작 기법(한글자막) 금별 2025.10.28 571
1243 언리얼4 언리얼5 - 음파 VFX 제작: Niagara Particle과 기본 Scene 제작 금별 2025.10.28 626
1242 언리얼4 언리얼5 - 음파 VFX 제작: Material 연결과 원리 분석 금별 2025.10.28 548
1241 언리얼4 언리얼5 - 음파 VFX 제작: 모델링과 텍스처 기초 금별 2025.10.28 526
1240 언리얼4 언리얼5 - 디지털 트랜지션 생성 및 파티클 픽셀화 제작과정(한글자막) 금별 2025.10.22 629
1239 언리얼4 언리얼 - 데몬슬레이어 아카자 스킬 VFX 분석 금별 2025.10.22 679
1238 언리얼4 언리얼5 - 테크노 스타일 매직 어레이/포스트 프로세싱 그리드 링 흐름 효과 제작과정(한글자막) 금별 2025.10.20 531
1237 언리얼4 언리얼5 - 오클루전 활용한 지면 균열 머트리얼 생성과정(한글자막) 금별 2025.10.20 562
1236 언리얼4 언리얼 - Lightmap UV 제거를 위한 에디터 유틸리티 제작 금별 2025.10.17 513
1235 언리얼4 언리얼 - 텍스처 패킹 자동화: 기술 아티스트를 위한 시간 절약 도구 금별 2025.10.17 530
1234 언리얼4 언리얼 - 폴라 UV는 타일링 텍스처 간단 활용 금별 2025.10.17 519
1233 언리얼4 언리얼5 - 원형 링 마법진 왜곡 효과 구현 팁 금별 2025.10.15 625
1232 언리얼4 언리얼5 - 물결 패턴 Normal Map 블렌딩 & 질감 교체 가이드 금별 2025.10.15 608
1231 언리얼4 언리얼5 VFX 프로젝트 조직화 가이드: 폴더부터 명명 규칙까지(한글자막) 금별 2025.10.14 624
1230 유니티 유니티 - Stylized 마법구 발사체 효과 제작과정 금별 2025.10.14 679
1229 언리얼4 언리얼5 - 행성 흡수 제작과정 : Spline과 Blueprint 활용 part2 금별 2025.10.12 611
1228 언리얼4 언리얼5 - 행성 흡수 제작과정 : Spline과 Blueprint 활용 part1 금별 2025.10.12 597
1227 언리얼4 언리얼5 - WorldPositionBehindTranslucency로 만드는 간단 커스텀 데칼 UV 금별 2025.10.11 559
1226 언리얼4 언리얼5 - 나이아가라(Niagara) 스폰 그룹 활용 퀵팁 금별 2025.10.11 1014
1225 언리얼4 언리얼 - '작은(Tiny) 지오메트리' 병합을 통한 카오스 최적화 팁 금별 2025.10.11 654
1224 언리얼4 언리얼5 - 사실적인 횃불 VFX: Houdini와 Embergen 활용 금별 2025.10.11 508
1223 언리얼4 언리얼5 - WorldPositionBehindTranslucency로 만드는 간단 커스텀 데칼 UV 금별 2025.10.11 461

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand