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



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

금별 0 8,169 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


번호 포토 분류 제목 글쓴이 날짜 조회
1353 언리얼4 Plasma ball in Unreal Engine 5 Niagara ashif 07.08 15
1352 언리얼4 Fireball in Unreal Engine 5 Niagara ashif 07.08 27
1351 언리얼4 언리얼5 - 간단한 공간 균열 제작 워크플로우 금별 07.08 29
1350 언리얼4 언리얼5 - 스크래치 패드활용 간단한 나이아가라 파티클 전체 회전 금별 07.08 22
1349 유니티 유니티 - Stylized 기본 검기 제작04_기본 검광 제작 (전체 워크플로) 금별 07.08 23
1348 유니티 유니티 - Stylized 기본 검기 제작03_검광 모델, 텍스처 및 UV 생성 금별 07.08 17
1347 유니티 유니티 - Stylized 기본 검기 제작02_검기의 구성과 리듬 금별 07.08 20
1346 유니티 유니티 - Stylized 기본 검기 제작01_파티클 시스템 소개 금별 07.08 20
1345 언리얼4 You need this Explosion in Unreal Engine 5 Niagara ashif 07.07 21
1344 언리얼4 언리얼 - 사실적인 데칼 균열 제작과정(한글자막) 금별 06.01 407
1343 언리얼4 언리얼 - 물결 형태 텍스쳐 트랜지션 효과 제작과정(한글자막) 금별 06.01 363
1342 언리얼4 언리얼 - Niagara에서 정적 메시를 사용하여 사용자 지정 파티클 모양 만들기 금별 05.17 456
1341 언리얼4 언리얼 - 포스트 프로세스 2D 페이지 넘김 효과 머트리얼 예제 금별 05.17 361
1340 언리얼4 언리얼 - AI 활용 블랙홀 셰이더를 업그레이드(한글자더빙) 금별 05.17 380
1339 유니티 유니티 - 호박(Amber) 셰이더 제작과정(한글자막) 금별 05.12 380
1338 언리얼4 언리얼 - HLSL 심층 설명 4_레이마칭 활용 평면정사각형 메시 3D 구체로 변형 금별 05.12 387
1337 언리얼4 언리얼 - HLSL 심층 설명 4 -UV 좌표를 레이어로 반복 쌓아 깊이감 있는 오목볼록 효과 구현(한글자막) 금별 05.06 425
1336 언리얼4 언리얼 - HLSL 심층 설명 3 -큰 원의 궤적을 따라 작은 원 배치효과(한글자막) 금별 05.06 378
1335 언리얼4 언리얼 - HLSL 심층 설명 2 -원형(Circle) 기반 쉐이더를 구현(한글자막) 금별 05.06 436
1334 언리얼4 언리얼 - HLSL 심층 설명 1 - 그라데이션 변화 도구 구현(한글자막) 금별 05.06 800
1333 언리얼4 언리얼 - 03 나이아가라 트레일 매직 매트릭스_1단계 - 스트립 방출 금별 05.04 441
1332 언리얼4 언리얼 - 02 나이아가라 트레일 매직 매트릭스_2단계 -스트립 트리거 매트릭스 금별 05.04 354

 

Banner
 
Facebook Twitter GooglePlus KakaoStory NaverBand