유니티 - 2d Raymarched Smoke



유니티 - 2d Raymarched Smoke

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

번호 포토 분류 제목 글쓴이 날짜 조회
422 유니티 유니티 - 캐릭 도트화 ScreenPosition 적용 제작과정예제 금별 2023.02.20 2385
421 유니티 유니티 - 쿠파 취업 클래스 실제강의 파도,워터 쇼크웨이브 압축 제작과정 금별 2023.02.20 2538
420 언리얼4 언리얼 - UV 축을 보여주는 머티리얼 함수 금별 2023.02.19 3358
419 언리얼4 언리얼 - 디지털 트랜지션 효과 제작방법 금별 2023.02.17 2470
418 언리얼4 언리얼 - Procedural Hex Tiling Material 금별 2023.02.17 2058
417 언리얼4 언리얼5 - 원신느낌의 Wenti's 원소폭파 제작과정 금별 2023.02.13 2832
416 3D 마야 - 윈드 메쉬 제작방법 금별 2023.02.13 2551
415 유니티 유니티 - 캐쥬얼 신체절단 피튀김 간단제작과정 (혐짤은 아님) 금별 2023.02.02 2917
414 언리얼4 언리얼 - Value erosion_Normalized 금별 2023.02.02 2186
413 언리얼4 언리얼5 나이아가라-촉수 제작 튜토리얼 금별 2023.02.01 2149
412 언리얼4 언리얼5 나이아가라-물고기떼 제작 튜토리얼 금별 2023.02.01 2265
411 언리얼4 언리얼5/섭디 - 커스터마이징과 수축 가능한 별 쉐이더 제작방법 금별 2023.02.01 2230
410 언리얼4 린반의 언리얼 이펙트 강의 가이드 V 1 금별 2023.01.28 2175
409 유니티 유니티 VFX 그래프 - 야스오 윈드월 이펙트 제작과정 금별 2023.01.26 2290
408 언리얼4 언리얼5 나이아가라 - Shading Niagara Fluids(꿀 느낌) 금별 2023.01.26 1911
407 언리얼4 언리얼 - 레트로 TV 스크린 효과 제작과정 금별 2023.01.25 1933
406 유니티 유니티 VFX 그래프 - 포켓몬 이빨 공격효과 예제 제작과정 금별 2023.01.12 2933
405 2D 섭디/유니티 - POM(ParallaxOcclusionMapping)활용 바닥 크랙 제작방법 금별 2023.01.10 2948
404 언리얼4 언리얼 - 검소환 공격효과 예제 part1 금별 2023.01.10 2519
403 언리얼4 언리얼 나이아가라 - 디졸브 활용 소환수 공격 제작과정 금별 2023.01.10 2814
402 유니티 유니티 VFX 그래프 - 효과적인 데칼 제작 셋업 방법 금별 2023.01.05 4080
401 유니티 유니티 - Creative Damage Decals & VFX 금별 2023.01.05 2107

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand