유니티 - 2d Raymarched Smoke



유니티 - 2d Raymarched Smoke

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

번호 포토 분류 제목 글쓴이 날짜 조회
88 언리얼4 언리얼4 VFX Basics - Creating the scrolling texture with mask setup 금별 2019.10.31 7378
87 언리얼4 언리얼4 팁 - Gradient Mapping 금별 2019.10.29 4624
86 유니티 유니티 - 스타게이트 효과 참고영상 금별 2019.10.29 6399
열람중 유니티 유니티 - 2d Raymarched Smoke 댓글+5 금별 2019.10.26 3209
84 유니티 유니티 이펙트 팁 - 포털제작 금별 2019.10.19 7482
83 언리얼4 언리얼4 이펙트 팁 - Rift to R’lyeh FX 금별 2019.10.15 5959
82 언리얼4 언리얼4 - 버텍스 옵셋 예제와 노드 금별 2019.09.16 5446
81 유니티 유니티 - 포탈이펙트 예제와 제작과정 금별 2019.09.09 8771
80 유니티 유니티 - Stylized 폭포 제작하기 금별 2019.09.07 17192
79 유니티 유니티 - 원통형 메쉬에 토네이도형 uv 흐름제어 금별 2019.08.30 3827
78 유니티 유니티 이펙트 제작과정 - 사슬로 감싼 폭발형태 제작 금별 2019.08.30 7420
77 유니티 마법적 구슬형태 제작 금별 2019.08.30 3803
76 유니티 유니티 버텍스 옵셋 효과 예제 Juane Gray 금별 2019.08.20 4002
75 유니티 Skeleton Mage Summon With Shaders and Textures 금별 2019.08.20 3122
74 언리얼4 언리얼4 - 버블쉐이더 금별 2019.08.20 3304
73 유니티 유니티 쉐이더 - 쉐이더그래프/앰플리파이 쉐이더에서의 커스터 버택스 스트림 사용 금별 2019.08.20 7436
72 언리얼4 토네이도와 폭발효과 만들기 금별 2019.08.18 6394
71 언리얼4 언리얼4 머터리얼 팁 - 텍스쳐없이 만드는 머터리얼 패턴 금별 2019.08.13 5253
70 유니티 유니티 쉐이더 그래프 - Weaving Ring Tutorial 2 댓글+1 금별 2019.08.12 3292
69 유니티 유니티 쉐이더 그래프 - Weaving Ring Tutorial 1 댓글+1 금별 2019.08.12 3862
68 유니티 유니티 쉐이더 팁 - 유령 트레일효과 SIN WAVE TRAIL 금별 2019.08.02 8249
67 유니티 유니티 쉐이더 팁 - RzFX//Radar Scan World Grid 금별 2019.07.24 5988

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand