유니티 - 2d Raymarched Smoke



유니티 - 2d Raymarched Smoke

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

번호 포토 분류 제목 글쓴이 날짜 조회
103 언리얼4 언리얼4 머터리얼 튜토리얼 - 흐르는 노이즈 머터리얼 제작 금별 2020.02.02 2527
102 언리얼4 언리얼4 튜토리얼 - 심리스 형태의 Animated 노이즈제작 금별 2020.01.31 1705
101 언리얼4 언리얼4 - 바다 파도 쉐이더 라이브 스트림 튜토리얼 금별 2020.01.24 3100
100 언리얼4 언리얼4 튜토리얼 - Explosions for Games (UE4 Particle Tutorial) 금별 2020.01.20 1645
99 언리얼4 언리얼4 팁 - 얼음물 유리잔 쉐이더 제작 댓글+1 금별 2020.01.20 2939
98 언리얼4 언리얼4 팁 - 회오리 표현 금별 2020.01.20 2753
97 언리얼4 [GDC]Stylized Games을 위한 VFX 아트 디렉팅 금별 2020.01.20 1588
96 2D Stylized Animated 2D 이펙트: 팁과 트릭 금별 2020.01.20 4294
95 언리얼4 Making-of: VFX 고스트리콘 브레이크 포인트 금별 2020.01.20 2300
94 언리얼4 언리얼4 팁 - UNREAL 4 TIPS AND TRICKS 금별 2019.12.29 1783
93 유니티 유니티 - Custom Vertex Stream and Shadergraph/Amplify Shader 금별 2019.12.29 5741
92 언리얼4 언리얼4 - 호박 폭발 이펙트 참고 및 노드예제 금별 2019.12.09 3126
91 유니티 유니티 쉐이더 팁 - Rime 스타일의 폭포 제작 댓글+2 금별 2019.11.26 3861
90 유니티 유니티 이펙트 팁 - 데스스트랜딩 홀로그램 효과 참고해 만들기 금별 2019.11.19 3225
89 언리얼4 언리얼4 - 블랜더를 활용한 지형 버텍스 옵셋 이펙트 팁 금별 2019.11.19 1778
88 언리얼4 언리얼4 VFX Basics - Creating the scrolling texture with mask setup 금별 2019.10.31 4932
87 언리얼4 언리얼4 팁 - Gradient Mapping 금별 2019.10.29 2748
86 유니티 유니티 - 스타게이트 효과 참고영상 금별 2019.10.29 3827
열람중 유니티 유니티 - 2d Raymarched Smoke 댓글+5 금별 2019.10.26 1660
84 유니티 유니티 이펙트 팁 - 포털제작 금별 2019.10.19 5058
83 언리얼4 언리얼4 이펙트 팁 - Rift to R’lyeh FX 금별 2019.10.15 3645
82 언리얼4 언리얼4 - 버텍스 옵셋 예제와 노드 금별 2019.09.16 3334

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand