유니티 - 2d Raymarched Smoke



유니티 - 2d Raymarched Smoke

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

번호 포토 분류 제목 글쓴이 날짜 조회
252 유니티 유니티 에너지볼(노바 쉐이더) 제작영상 및 자료 금별 2022.10.26 1496
251 유니티 유니티 앰플리파이 쉐이더 - 트라이메쉬형태 방패 스킨 제작방법(중국어) 금별 2022.08.16 1498
250 유니티 유니티 - 크리처 소환 이펙트 제작과정 금별 2023.03.08 1506
249 유니티 유니티 - VFX 및 게임 개발에 유용한 5가지 셰이더 그래프 [유니티, 셰이더 그래프] 금별 2022.10.06 1508
248 유니티 유니티 셰이더&렌더링 에센스(retr0) 금별 2020.02.16 1512
247 3D 후디니 - 카툰풍 2D 화염 효과 제작방법 금별 2022.12.18 1512
246 유니티 유니티 - 꿀렁거리는 촉수 쉐이더 제작과정 금별 2021.12.30 1515
245 유니티 유니티 - 라이트닝 파티클 제작방법(오브젝트 근처에서 튀기는) 금별 2022.11.28 1527
244 유니티 유니티 - 피격 효과 제작방법(중국어) 금별 2022.03.30 1530
243 언리얼4 언리얼 - 텍스쳐 없이 UV체커 만들기 금별 2022.03.14 1534
242 유니티 유니티 - 자라나는 나무 효과 제작과정 금별 2022.08.25 1547
241 언리얼4 언리얼4 Material Node에서 자주쓰는 Position 종류 노드 설명 금별 2021.05.24 1551
240 3D 3ds맥스 - Helix Mesh 나선형 메시 만들기(한글강좌) 금별 2022.09.24 1557
239 유니티 유니티 이펙트 - 플로우맵 활용 흩어지는 연기제작(중국어) 금별 2021.11.01 1566
238 유니티 유니티 쉐이더 그래프 - 흐르는 강 쉐이더 튜토리얼 금별 2021.04.27 1571
237 언리얼4 [GDC]Stylized Games을 위한 VFX 아트 디렉팅 금별 2020.01.20 1572
236 언리얼4 언리얼 - 나이아가라에 블루프린트로 트리거 셋팅 퀵팁 금별 2022.08.29 1573
235 언리얼4 언리얼4 컴파일링 벤치마크 8코어 vs 16코어 CPU[Unreal Engine 4.25.4] 금별 2020.10.27 1574
234 유니티 유니티 쉐이더 그래프 - 빨려들어가는 이펙트 제작 Almighty Vertex 금별 2022.07.07 1574
233 유니티 유니티 쉐이더 그래프 - Orthographic 뎁스 금별 2020.03.26 1576
232 언리얼4 언리얼 짤막팁 - Preview Scene Settings설정 금별 2022.03.25 1576
231 유니티 유니티 VFX 그래프 - 효과적인 데칼 제작 셋업 방법 금별 2023.01.05 1588

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand