유니티 쉐이더 - 쉐이더그래프/앰플리파이 쉐이더에서의 커스터 버택스 스트림 사용



유니티 쉐이더 - 쉐이더그래프/앰플리파이 쉐이더에서의 커스터 버택스 스트림 사용

금별 0 5,284 2019.08.20 03:33

 

 

One simple way is setting your colors as HDR in shadergraph

 

and use AgePercent to Lerp between the color

 

 

The only counterpart is if you want 4 different colors over the particule life, you will have to declare 4 colors :

 

 

 

Here the result :

 

 

In few words, each smoothstep provide a [0-1] value to lerp between the different colors.
The smoothstep range is define by [1 / 3 (numberOfSmoothstep)]

 

  • for the first one you have [0 => 0.33]
  • the seconde one : [0.33 => 0.33 * 2]
  • the last one : [0.33 * 2 => 0.33 * 3]

 

I hope it’s what you’re looking for in a way!
And here the shader for example (you can see the setup for shuriken in the gif). Sorry, i don’t know how to add commentary in shadergraph… and it’s look like it’s impossible for the moment!

 

다운로드

https://drive.google.com/file/d/19oafzIyZIg3qzvszjFwKc0z7ZHYOiPUZ/view

 

 

Ok, so here is what I have:

 

Pretty basic, i just want to influence the alpha.

Now I want to join a noise with it, a multiply should be enough:

 

 

Here is the result:

 

 

And here is the setting for the particle system

 

 

It completely ignores any values put on the custom data. But if I remove UV (TXCOORD0.xy)

 

 

 

Well, it works ! Buuuut now it loses its ability to read the texture.

If it isn’t clear enough please tell me ! And thank you for dedicating time for newbies like me <3

 

 

 

Comments


번호 포토 분류 제목 글쓴이 날짜 조회
60 유니티 포토샵으로 디졸브 쉐이더를 사용해 2D 툰이펙트 제작팁 댓글+2 금별 2020.05.16 3774
59 유니티 유니티 URP 쉐이더그래프 팁 - 블러만들기 금별 2020.04.01 5394
58 유니티 유니티 HDRP에서 소규모 고품질의 영상 제작 - Unite Tokyo 2019 금별 2020.03.29 1749
57 유니티 유니티 쉐이더 그래프 - Orthographic 뎁스 금별 2020.03.26 1551
56 유니티 유니티 쉐이더 그래프 - 꼬여지는듯한 착각의 쉐이더 금별 2020.03.19 1929
55 유니티 유니티 - 마스크 디스토션 림 쉐이더그래프 금별 2020.03.05 3297
54 유니티 유니티 이펙트 팁 - RzFX Flow Trail in Unity 금별 2020.02.27 3999
53 유니티 Converting some code shaders to ShaderGraph 댓글+3 금별 2020.02.27 1433
52 유니티 기적의 셰이더 그래프 '어떤 노드든 이해시켜 드립니다 금별 2020.02.18 3015
51 유니티 유니티 셰이더&렌더링 에센스(retr0) 금별 2020.02.16 1503
50 유니티 유니티 이펙트 팁 - 아주 간단히 보는 포털제작팁 댓글+1 금별 2020.02.10 1862
49 유니티 유니티 - Custom Vertex Stream and Shadergraph/Amplify Shader 금별 2019.12.29 5703
48 유니티 유니티 쉐이더 팁 - Rime 스타일의 폭포 제작 댓글+2 금별 2019.11.26 3810
47 유니티 유니티 이펙트 팁 - 데스스트랜딩 홀로그램 효과 참고해 만들기 금별 2019.11.19 3174
46 유니티 유니티 - 스타게이트 효과 참고영상 금별 2019.10.29 3753
45 유니티 유니티 - 2d Raymarched Smoke 댓글+5 금별 2019.10.26 1640
44 유니티 유니티 이펙트 팁 - 포털제작 금별 2019.10.19 5007
43 유니티 유니티 - 포탈이펙트 예제와 제작과정 금별 2019.09.09 5943
42 유니티 유니티 - Stylized 폭포 제작하기 금별 2019.09.07 8799
41 유니티 유니티 - 원통형 메쉬에 토네이도형 uv 흐름제어 금별 2019.08.30 1897
40 유니티 유니티 이펙트 제작과정 - 사슬로 감싼 폭발형태 제작 금별 2019.08.30 4897
39 유니티 마법적 구슬형태 제작 금별 2019.08.30 2016

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand