유니티 - 2d Raymarched Smoke



유니티 - 2d Raymarched Smoke

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

번호 포토 분류 제목 글쓴이 날짜 조회
567 유니티 유니티공식 - 볼류메트릭 레이마칭 튜토리얼 금별 2023.08.24 3076
566 유니티 유니티 - Stylized 도트화 이펙트 제작과정 금별 2023.08.23 4656
565 유니티 유니티 - 롤 케인 모작 원형 검기 공격 이펙트 제작설명 금별 2023.08.23 3885
564 유니티 유니티 - 귀칼 젠이츠 번개의 호흡 연출예제 제작과정 설명영상 금별 2023.08.21 4711
563 유니티 유니티 - 스텐실을 활용한 포털효과 제작과정 금별 2023.08.20 3225
562 유니티 유니티 - 출렁거리는 Sci-fi 쉴드 쉐이더 예제 제작튜토리얼 금별 2023.08.19 3741
561 언리얼4 언리얼 5.3 - Sparse Volume Textures (VDBs) 금별 2023.08.16 3129
560 언리얼4 언리얼4 캐스캐이드 - 이미터 유지 스폰시간 계산 금별 2023.08.16 2551
559 2D 애펙을 활용한 간단한 카드형 UI 생성 연출 예제 제작과정 금별 2023.08.16 2555
558 언리얼4 언리얼 - 2D->3D로 카메라 벡터 - HLSL 코드 활용 동적 만다라 쉐이더 제작 금별 2023.08.16 2401
557 언리얼4 언리얼 머트리얼 - 타일 그라디언트에서 원형 링 마스크로 변환 금별 2023.08.16 3734
556 언리얼4 언리얼 - 2D 헥사곤 타일 애니메이션 연출 제작노드 금별 2023.08.16 2672
555 언리얼4 언리얼 Material Texcoord 사용법[한국어 라이브 특강] 금별 2023.08.12 3079
554 유니티 유니티 - 빙속성 화살 스킬 제작과정 금별 2023.08.11 3281
553 언리얼4 언리얼5 - 간단한 소용돌이 쉐이더 제작방법 금별 2023.08.11 3545
552 언리얼4 언리얼5 - 데칼 실시간 생성 및 늘어나는 문제 해결 금별 2023.08.11 2985
551 언리얼4 언리얼5 - 불규칙한 바닥 빗방울 리플효과 제작방법 금별 2023.08.11 3471
550 유니티 유니티 앰플리파이 쉐이더 - 차원 포털 제작과정 금별 2023.08.11 3464
549 언리얼4 언리얼 - 구체 노면에 따라 흐르는 웨이브 제작과정 금별 2023.08.10 3568
548 유니티 유니티 VFX 그래프 - 오브 이펙트 제작과정 금별 2023.08.10 3112
547 유니티 유니티 - 수속성 구체 폭파 제작 튜토리얼 금별 2023.08.08 3012
546 언리얼4 언리얼 - 비누방울 머트리얼 제작과정 금별 2023.08.07 2692

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand