Unity MaterialPropertyBlock으로 텍스처 Scale 및 Tiling 변경

mhComa·2023년 8월 3일
0

SetVector 메서드를 이용한다.

mpb.SetVector("_MainTex_ST", new Vector4(scale_x, scale_y, offset_x, offset_y));

URP의 경우 _BaseMap_ST으로 사용한다.

profile
Ich bin ein Hund!

1개의 댓글

comment-user-thumbnail
2023년 8월 3일

이런 유용한 정보를 나눠주셔서 감사합니다.

답글 달기